Permalink
Browse files

Added quotemeta to in method add_manifest. This fixes failing tests.

  • Loading branch information...
gnusosa authored and fcuny committed Jul 18, 2011
1 parent de8d2dc commit a10b782f00b8ed813c1ebec865ff26b7819fa689
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Dancer/Script.pm
View
@@ -194,7 +194,8 @@ sub create_node {
# argument on _create_node
my $add_to_manifest = sub {
my $file = shift;
- $file =~ s{^$root/?}{};
+ my $root_regex = quotemeta($root);
+ $file =~ s{^$root_regex/?}{};
print $manifest "$file\n";
};

0 comments on commit a10b782

Please sign in to comment.