Skip to content
Snippets Groups Projects
Commit 360356d8 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed an error in sanitize path

parent a54e17a0
No related branches found
No related tags found
No related merge requests found
......@@ -514,8 +514,8 @@ class ProxyController extends Controller
$sanitizedPath = null;
if(!empty($parts["path"])){
$pathParts = explode("/", $parts["path"]);
foreach($pathParts as $pathPart){
if(empty($pathPart)) continue;
foreach($pathParts as $index => $pathPart){
if($index === 0) continue;
// The Path part might already be urlencoded
$sanitizedPath .= "/" . rawurlencode(rawurldecode($pathPart));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment