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