Skip to content

Commit

Permalink
Item10150: PubUrlPath was being built incorrectly
Browse files Browse the repository at this point in the history
For some reason, this regular expression: $guess =~ s/\/.*?bin$/\/pub/;

Always turns something like this: /foswiki/git/bin always reduces it to this: /pub

git-svn-id: http://svn.foswiki.org/branches/Release01x01@10510 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Jan 9, 2011
1 parent 23f69eb commit 20e2d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/Checkers/PubUrlPath.pm
Expand Up @@ -14,7 +14,7 @@ sub check {
&& $Foswiki::cfg{PubUrlPath} ne 'NOT SET' )
{
my $guess = $Foswiki::cfg{ScriptUrlPath};
$guess =~ s/\/.*?bin$/\/pub/;
$guess =~ s/\/[^\/]*?bin$/\/pub/;
$guess .= '/pub' unless ($guess =~ m/pub$/);
$Foswiki::cfg{PubUrlPath} = $guess;
return $this->guessed(0);
Expand Down

0 comments on commit 20e2d78

Please sign in to comment.