Skip to content

Commit be09e48

Browse files
committed
Set limit when splitting key/value using =
1 parent bdf03fe commit be09e48

File tree

1 file changed

+1
-1
lines changed
  • dspace-api/src/main/java/org/dspace/authenticate/clarin

1 file changed

+1
-1
lines changed

dspace-api/src/main/java/org/dspace/authenticate/clarin/Headers.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void initialise(String shibHeaders, String header_separator) {
8282
for (String line : shibHeaders.split("\n")) {
8383
String key = " ";
8484
try {
85-
String key_value[] = line.split("=");
85+
String key_value[] = line.split("=", 2);
8686
key = key_value[0].trim();
8787
headers_.put(key, List.of(key_value[1]));
8888
} catch (Exception ignore) {

0 commit comments

Comments
 (0)