Skip to content

Commit

Permalink
Item1704: allow dots in webnames again
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@4070 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Jun 9, 2009
1 parent 539c7f7 commit 09b7271
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/lib/Foswiki/Store/VCStore.pm
Expand Up @@ -498,6 +498,7 @@ sub webExists {
my ( $this, $web ) = @_;

return 0 unless defined $web;
$web =~ s/\./\//go;
my $handler = $this->getHandler( $web, $Foswiki::cfg{WebPrefsTopicName} );
return $handler->storedDataExists();
}
Expand All @@ -506,6 +507,7 @@ sub webExists {
sub topicExists {
my ( $this, $web, $topic ) = @_;

$web =~ s#\.#/#go;
ASSERT( defined($topic) ) if DEBUG;
return 0 unless $topic;

Expand Down
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Templates.pm
Expand Up @@ -292,7 +292,7 @@ sub _readTemplateFile {

# SMELL: not i18n-friendly (can't have accented characters in skin name)
# zap anything suspicious
$name =~ s/[^A-Za-z0-9_,.]//go;
$name =~ s/[^A-Za-z0-9_,.\/]//go;
$skins =~ s/[^A-Za-z0-9_,.]//go;

# if the name ends in .tmpl, then this is an explicit include from
Expand Down

0 comments on commit 09b7271

Please sign in to comment.