Skip to content

Commit

Permalink
Quick fix to the me() fix to the redirect function (for relative redi…
Browse files Browse the repository at this point in the history
…rects).
  • Loading branch information
sam_marshall committed Sep 25, 2006
1 parent 30b1425 commit 20e1b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 20e1b1e

Please sign in to comment.