Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…rects).
  • Loading branch information...
commit 20e1b1e5c0e70b631cb844963a6eeffe364e03a4 1 parent 30b1425
authored September 25, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/weblib.php
2  lib/weblib.php
@@ -4686,7 +4686,7 @@ function redirect($url, $message='', $delay=-1) {
4686 4686
                 $url = $hostpart.$url;
4687 4687
             } else {
4688 4688
                 // URLs not beginning with / are relative to path of current script, so add that on.
4689  
-                $url = $hostpart.me().'/../'.$url;
  4689
+                $url = $hostpart.preg_replace('|\?.*$|','',me()).'/../'.$url;
4690 4690
             }
4691 4691
             // Replace all ..s
4692 4692
             while (true) {

0 notes on commit 20e1b1e

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