Skip to content

Commit

Permalink
Fix: Replace pipe character (|) with %7C in URLs
Browse files Browse the repository at this point in the history
Modified the handling of URLs in the file field to replace the pipe character (|) with its encoded representation (%7C) to avoid exceptions
in JabRef.

Closes JabRef#11876
  • Loading branch information
hitalo-siriano committed Oct 22, 2024
1 parent 4ec8bed commit dc8de32
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public FileFieldParser(String value) {
if (value == null) {
this.value = null;
} else {
this.value = value.replace("$\\backslash$", "\\");
String valueFormat = value.replace("|", "%7C");
this.value = valueFormat.replace("$\\backslash$", "\\");
}
}

Expand Down

0 comments on commit dc8de32

Please sign in to comment.