mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/11997] Add clean_url() method to path_helper
This method will get rid of unnecessary . and .. in URLs. PHPBB3-11997
This commit is contained in:
@@ -2777,7 +2777,7 @@ function redirect($url, $return = false, $disable_cd_check = false)
|
||||
$url = (!empty($dir) ? $dir . '/' : '') . $url;
|
||||
$url = generate_board_url() . '/' . $url;
|
||||
}
|
||||
$url = $phpbb_filesystem->clean_path($url);
|
||||
$url = $phpbb_path_helper->clean_url($url);;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user