From: Pierre Habouzit (MadCoder Date: Fri, 11 Mar 2005 22:30:36 +0000 (+0000) Subject: backport carva X-Git-Tag: xorg/old~246 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=09bb9556005ee8f56c81e2f993de25d7a7d42795;p=platal.git backport carva Patches applied: * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-44 fix carva git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-514 --- diff --git a/scripts/webredirect.php b/scripts/webredirect.php index dac46bb..13f81d1 100644 --- a/scripts/webredirect.php +++ b/scripts/webredirect.php @@ -34,7 +34,11 @@ $res = $globals->xdb->query( if ($url = $res->fetchOneCell()) { $url = preg_replace('@/+$@', '', $url); - header("Location: http://$url/$path"); + if($path) { + header("Location: http://$url/$path"); + } else { + header("Location: http://$url"); + } exit(); }