Skip to content

Commit

Permalink
Item13755: fix web.topic normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Sep 25, 2015
1 parent 2e5b6b9 commit f7da71c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Foswiki/Plugins/DocumentViewerPlugin.pm
Expand Up @@ -48,8 +48,9 @@ sub _DOCUMENTVIEWER {
return
'<noautolink><span class="foswikiAlert">DocumentViewerPlugin error: Missing parameter to DOCUMENTVIEWER</span></noautolink>';
}
$web = $params->{web} || $web;
$topic = $params->{topic} || $topic;
( $web, $topic ) =
Foswiki::Func::normalizeWebTopicName( $params->{web} || $web,
$params->{topic} || $topic );

unless ( Foswiki::Func::attachmentExists( $web, $topic, $attachment ) ) {
return
Expand Down

0 comments on commit f7da71c

Please sign in to comment.