Skip to content

Commit

Permalink
Item9722: Incorrect (absolute) links returned by Foswiki::Func::getCg…
Browse files Browse the repository at this point in the history
…iQuery->url( -absolute => 1)

Dan forgot to merge this to Release01x01 branch so I do it now.


git-svn-id: http://svn.foswiki.org/branches/Release01x01@9352 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
KennethLavrsen authored and KennethLavrsen committed Sep 26, 2010
1 parent 5fa1dea commit 84e5398
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/Foswiki/Request.pm
Expand Up @@ -252,6 +252,7 @@ sub url {
defined $Foswiki::cfg{ScriptUrlPaths}{ $this->action }
? $Foswiki::cfg{ScriptUrlPaths}{ $this->action }
: $Foswiki::cfg{ScriptUrlPath} . '/' . $this->action;
$name =~ s(//+)(/)g;
$name .= $Foswiki::cfg{ScriptSuffix};
if ($full) {
my $vh = $this->header('X-Forwarded-Host') || $this->header('Host');
Expand Down

0 comments on commit 84e5398

Please sign in to comment.