Quellcode durchsuchen
Update ServletPortletHelper.java (#12087)
This is needed to get /UIDL working behind a reverse proxy. Without the change pathInfo would be "/UIDL" but prefix would be "/UIDL/" in line 105.
tags/8.12.0.alpha2
Clemens von Schwerin
vor 3 Jahren
Ursprung
Commit
dcd550ec74
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
|
|
@@ -98,6 +98,10 @@ public class ServletPortletHelper implements Serializable { |
|
|
|
prefix = '/' + prefix; |
|
|
|
} |
|
|
|
|
|
|
|
if (!pathInfo.endsWith("/") && prefix.endsWith("/")) { |
|
|
|
pathInfo += '/'; |
|
|
|
} |
|
|
|
|
|
|
|
if (pathInfo.startsWith(prefix)) { |
|
|
|
return true; |
|
|
|
} |