Fixing a bug where append could return broken urls (starting with //)
This commit is contained in:
parent
eb0cbfb060
commit
a60e4a5262
1 changed files with 1 additions and 0 deletions
|
|
@ -120,6 +120,7 @@ Name value pairs to add to the URL in the form of:
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub gateway {
|
sub gateway {
|
||||||
|
$_[0] =~ s/^\///;
|
||||||
my $url = getScriptURL().$_[0];
|
my $url = getScriptURL().$_[0];
|
||||||
if ($session{setting}{preventProxyCache} == 1) {
|
if ($session{setting}{preventProxyCache} == 1) {
|
||||||
$url = append($url,"noCache=".randint(0,1000).';'.time());
|
$url = append($url,"noCache=".randint(0,1000).';'.time());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue