projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca33969
)
clarify why absolute is tested & stripped here
author
Joey Hess
<joey@kitenet.net>
Tue, 20 Apr 2010 17:49:46 +0000
(13:49 -0400)
committer
Joey Hess
<joey@kitenet.net>
Tue, 20 Apr 2010 17:49:46 +0000
(13:49 -0400)
file_prune also fails on absolute filenames now
IkiWiki/Plugin/editpage.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/editpage.pm
b/IkiWiki/Plugin/editpage.pm
index ee1de8eaa10285a818be0205322348cc3a0a117f..dff7771381ddca5d9392d50bae81356c61fd5805 100644
(file)
--- a/
IkiWiki/Plugin/editpage.pm
+++ b/
IkiWiki/Plugin/editpage.pm
@@
-92,7
+92,7
@@
sub cgi_editpage ($$) {
# wiki_file_regexp.
my ($page)=$form->field('page')=~/$config{wiki_file_regexp}/;
$page=possibly_foolish_untaint($page);
- my $absolute=($page =~ s#^/+##);
+ my $absolute=($page =~ s#^/+##);
# absolute name used for force location
if (! defined $page || ! length $page ||
file_pruned($page)) {
error(gettext("bad page name"));