Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item12958: ensure a web name is always found, even if none is specified
  • Loading branch information
crawford committed Nov 25, 2014
1 parent 6824204 commit b7af81e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/Foswiki/Form.pm
Expand Up @@ -390,11 +390,13 @@ sub _link {
$tooltip ||= $defaultToolTip;

( my $web, $topic ) =
$this->session->normalizeWebTopicName( $this->{web}, $topic );
$this->session->normalizeWebTopicName( $this->web(), $topic );

$web =
Foswiki::Sandbox::untaint( $web, \&Foswiki::Sandbox::validateWebName );

$web ||= $this->web();

$topic = Foswiki::Sandbox::untaint( $topic,
\&Foswiki::Sandbox::validateTopicName );

Expand Down

0 comments on commit b7af81e

Please sign in to comment.