summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/editdiff.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-06 15:52:04 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-06 15:52:04 -0400
commit05124f9a86dadca50c693d57f8fc8398fb5d8be9 (patch)
tree65c81b6a7a0c3dbf850782b4b8320b458f95ff0a /IkiWiki/Plugin/editdiff.pm
parentbadfb9a5c91b92d0e6a61f331bcaff6683ee11bc (diff)
editpage escaping fixes
* The editpage form now uses the raw page name, not the page title, in its 'page' cgi parameter. Using the title was ambiguous and made it impossible to tell between some pages, like "foo/bar" and "foo__47__bar", sometimes causing the wrong page to be edited. * This change means that some edit links need to be updated. Force a rebuild on upgrade to this version. * Above change also allowed really fixing escaped slashes from the blogpost form.
Diffstat (limited to 'IkiWiki/Plugin/editdiff.pm')
-rw-r--r--IkiWiki/Plugin/editdiff.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/editdiff.pm b/IkiWiki/Plugin/editdiff.pm
index b8ecaa3d7..d45c73e8f 100644
--- a/IkiWiki/Plugin/editdiff.pm
+++ b/IkiWiki/Plugin/editdiff.pm
@@ -50,7 +50,7 @@ sub formbuilder_setup { #{{{
return if $form->field("do") ne "edit";
- $page = IkiWiki::titlepage(IkiWiki::possibly_foolish_untaint($page));
+ $page = IkiWiki::possibly_foolish_untaint($page);
return unless exists $pagesources{$page};
push @{$params{buttons}}, "Diff";