Fixed unwanted sanitization in Admin:PageManager form submit
authorDan
Wed, 12 Sep 2007 00:18:32 -0400
changeset 130 c4ce1640e1f4
parent 129 0b5244001799
child 131 f59a8881f7e9
Fixed unwanted sanitization in Admin:PageManager form submit
plugins/SpecialAdmin.php
--- a/plugins/SpecialAdmin.php	Tue Sep 11 18:35:39 2007 -0400
+++ b/plugins/SpecialAdmin.php	Wed Sep 12 00:18:32 2007 -0400
@@ -1658,7 +1658,8 @@
       echo '<div class="info-box">This page has been deleted.</p><p><a href="javascript:ajaxPage(\''.$paths->nslist['Admin'].'PageManager\');">Return to Page manager</a><br /><a href="javascript:ajaxPage(\''.$paths->nslist['Admin'].'Home\');">Admin home</a></div>';
       return;
     }
-    echo '<form action="'.makeUrl($paths->nslist['Special'].'Administration'.htmlspecialchars(urlSeparator).(( isset($_GET['sqldbg']) ) ? 'sqldbg&amp;' : '') .'module='.$paths->cpage['module']).'" method="post">';
+    $url = makeUrlNS('Special', 'Administration', 'module='.$paths->cpage['module'], true);
+    echo '<form action="'.$url.'" method="post">';
     ?>
     <h3>Modify page: <?php echo htmlspecialchars($_POST['name']); ?></h3>
      <table border="0">