Skip to content

Commit

Permalink
Item11187: Fix trailing slash should be optional
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/OpenLayersPlugin@13275 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulAlexander authored and PaulAlexander committed Dec 2, 2011
1 parent 789c5f4 commit a5b7089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/OpenLayersPlugin.pm
Expand Up @@ -118,7 +118,7 @@ sub _getJSON {
my $whitelist =
$Foswiki::cfg{Plugins}{OpenLayersPlugin}{URLs}{whitelist} || '';
my @URLs =
map { quotemeta( $_ . '/' ) } split( /\/\s*,\s*/, $whitelist );
map { quotemeta( $_ . '/' ) } split( /\/?\s*,\s*/, $whitelist );
my $URLregexp = join( '|', @URLs );

if ( $whitelist && $url =~ /^($URLregexp)/ ) {
Expand Down

0 comments on commit a5b7089

Please sign in to comment.