Skip to content
Browse files

Quick fix to the me() fix to the redirect function (for relative redi…

…rects).
  • Loading branch information...
1 parent 30b1425 commit 20e1b1e5c0e70b631cb844963a6eeffe364e03a4 sam_marshall committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
2 lib/weblib.php
@@ -4686,7 +4686,7 @@ function redirect($url, $message='', $delay=-1) {
$url = $hostpart.$url;
} else {
// URLs not beginning with / are relative to path of current script, so add that on.
- $url = $hostpart.me().'/../'.$url;
+ $url = $hostpart.preg_replace('|\?.*$|','',me()).'/../'.$url;
}
// Replace all ..s
while (true) {

0 comments on commit 20e1b1e

Please sign in to comment.
Something went wrong with that request. Please try again.