rename: Fix double-escaping of page name in edit box.
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 17 Dec 2008 18:56:10 +0000 (13:56 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 17 Dec 2008 18:56:10 +0000 (13:56 -0500)
titlepage normally escapes, but so does formbuilder.

IkiWiki/Plugin/rename.pm
debian/changelog

index 7e55e271cbe6a403115fb38eff1f5655fbc626d6..e4201cc941ec81fe736fbe4ef54a610a66ec7031 100644 (file)
@@ -111,7 +111,7 @@ sub rename_form ($$$) { #{{{
        
        $f->field(name => "do", type => "hidden", value => "rename", force => 1);
        $f->field(name => "page", type => "hidden", value => $page, force => 1);
-       $f->field(name => "new_name", value => pagetitle($page), size => 60);
+       $f->field(name => "new_name", value => pagetitle($page, 1), size => 60);
        if (!$q->param("attachment")) {
                # insert the standard extensions
                my @page_types;
index 76f00157d0d3bf92d711e07c5f8cfff748194393..b43144b365b88beac3e254779564dfa40ecc7a68 100644 (file)
@@ -15,6 +15,7 @@ ikiwiki (2.71) UNRELEASED; urgency=low
     generated.
   * meta: Pass info to htmlscrubber so htmlscrubber_skip can take effect.
   * htmlbalance: don't compact whitespace, and set misc other options (smcv)
+  * rename: Fix double-escaping of page name in edit box.
 
  -- Joey Hess <joeyh@debian.org>  Mon, 17 Nov 2008 14:02:10 -0500