Skip to content

Commit

Permalink
Item15218: fixed path info parser
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Oct 3, 2023
1 parent 0e7e2c3 commit e6702f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions UnitTestContrib/test/unit/ViewScriptTests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,11 @@ sub test_urlparsing {
$this->{test_web} . '/ThisTopic/WebHome', 'WebHome' );
}

#invalid..
return;
}

sub test_urlparsing_invalid {
my $this = shift;

# - Invalid web name - Tasks.Item8713
$this->urltest( '/A:B/WebPreferences', $Foswiki::cfg{HomeWebName},
Expand All @@ -716,10 +720,9 @@ sub test_urlparsing {
'WebPreferences' );

#invalid topic name
$this->urltest( '/System/WebPre@ferences', $Foswiki::cfg{UsersWebName},
$this->urltest( '/System/WebPre@ferences', $Foswiki::cfg{SystemWebName},
'WebHome' );

return;
}

1;
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Request.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ sub parse {
else {
$resp->{web} = undef, $resp->{invalidWeb} = $_;
}
return $resp;
next;
}

# Not evil, now need to figure out if it's a topic or web.
Expand Down

0 comments on commit e6702f6

Please sign in to comment.