From a60e4a5262345b6552bfdb30102ddc9590afa702 Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Tue, 11 Jan 2005 20:52:13 +0000 Subject: [PATCH] Fixing a bug where append could return broken urls (starting with //) --- lib/WebGUI/URL.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/WebGUI/URL.pm b/lib/WebGUI/URL.pm index 2b3a15e40..febe6b830 100644 --- a/lib/WebGUI/URL.pm +++ b/lib/WebGUI/URL.pm @@ -120,6 +120,7 @@ Name value pairs to add to the URL in the form of: =cut sub gateway { + $_[0] =~ s/^\///; my $url = getScriptURL().$_[0]; if ($session{setting}{preventProxyCache} == 1) { $url = append($url,"noCache=".randint(0,1000).';'.time());