Skip to content

Commit

Permalink
Item13218: correct PUBURLPATH interpretation of topic= param
Browse files Browse the repository at this point in the history
  • Loading branch information
Comment committed Jan 20, 2015
1 parent 400d288 commit c634ad1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/lib/Foswiki/Store.pm
Expand Up @@ -203,6 +203,12 @@ sub getAttachmentURL {
my $url = $Foswiki::cfg{PubUrlPath} || '';
my @params;

if ( $options{topic} ) {
( $options{web}, $options{topic} ) =
Foswiki::Func::normalizeWebTopicName( $options{web},
$options{topic} );
}

if ( $options{web} ) {
$url .= '/' . Foswiki::urlEncode( $options{web} );
delete $options{web};
Expand Down

0 comments on commit c634ad1

Please sign in to comment.