We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acbb69c commit c6b3774Copy full SHA for c6b3774
src/java/fr/paris/lutece/plugins/extend/modules/comment/web/CommentApp.java
@@ -874,7 +874,16 @@ private XPage doRemoveComment( HttpServletRequest request, String strIdExtendabl
874
HttpServletResponse response = LocalVariables.getResponse( );
875
try
876
{
877
- response.sendRedirect( strFromUrl );
+ // Open redirect control (set baseUrl in lutece properties in case of ReverseProxy)
878
+ if ( strFromUrl.startsWith( AppPathService.getBaseUrl( request ) ) )
879
+ {
880
+ response.sendRedirect( strFromUrl );
881
+ }
882
+ else
883
884
+ AppLogService.( "WARNING : Incorrect base URL", new MalformedURLException() );
885
886
+
887
}
888
catch (IOException e)
889
0 commit comments