Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…rects).
  • Loading branch information...
commit 20e1b1e5c0e70b631cb844963a6eeffe364e03a4 1 parent 30b1425
sam_marshall authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.