File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Symfony/Component/HttpFoundation Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1944,11 +1944,11 @@ protected function prepareBaseUrl()
19441944 $ truncatedRequestUri = substr ($ requestUri , 0 , $ pos );
19451945 }
19461946
1947- if (empty (basename ($ baseUrl )) || !strpos (rawurldecode ($ truncatedRequestUri ), basename ($ baseUrl ))) {
1947+ if (empty (basename ($ baseUrl )) || !strpos (rawurldecode ($ truncatedRequestUri ). ' / ' , ' / ' . basename ($ baseUrl ). ' / ' )) {
19481948 // strip autoindex filename, for virtualhost based on URL path
19491949 $ baseUrl = \dirname ($ baseUrl ).'/ ' ;
19501950
1951- if (empty (basename ($ baseUrl )) || !strpos (rawurldecode ($ truncatedRequestUri ), basename ($ baseUrl ))) {
1951+ if (empty (basename ($ baseUrl )) || !strpos (rawurldecode ($ truncatedRequestUri ). ' / ' , ' / ' . basename ($ baseUrl ). ' / ' )) {
19521952 // no match whatsoever; set it blank
19531953 return '' ;
19541954 }
You can’t perform that action at this time.
0 commit comments