diff -r c83ff194977a -r 723bb7acf914 plugins/SpecialAdmin.php
--- a/plugins/SpecialAdmin.php Mon Jul 02 20:33:57 2007 -0400
+++ b/plugins/SpecialAdmin.php Tue Jul 03 14:07:35 2007 -0400
@@ -246,10 +246,10 @@
Global site options |
These options control the entire site. |
- Site name: | |
- Site description: | |
- Main page: | pagename_field('main_page', str_replace('_', ' ', getConfig('main_page'))); ?> |
- Copyright notice shown on pages: | |
+ Site name: | |
+ Site description: | |
+ Main page: | pagename_field('main_page', htmlspecialchars(str_replace('_', ' ', getConfig('main_page')))); ?> |
+ Copyright notice shown on pages: | |
Hint: If you're using Windows, you can make a "©" symbol by holding ALT and pressing 0169 on the numeric keypad. |
Contact e-mail All e-mail sent from this site will appear to have come from the address shown here. | |
@@ -1475,7 +1475,7 @@
if(isset($_POST['page_id']) && isset($_POST['namespace']) && !isset($_POST['cancel']))
{
- $cpage = $paths->pages[$paths->nslist[$_POST['namespace']].$_POST['old_page_id']];
+ $cpage = $paths->pages[$paths->nslist[$_POST['old_namespace']].$_POST['old_page_id']];
if(isset($_POST['submit']))
{
switch(true)
@@ -1492,7 +1492,7 @@
'protected'=>isset($_POST['protected']) ? '1' : '0'
);
- $updating_urlname_or_namespace = ( $page_info['namespace'] != $cpage['namespace'] || $page_info['urlname'] != $cpage['urlname'] );
+ $updating_urlname_or_namespace = ( $page_info['namespace'] != $cpage['namespace'] || $page_info['urlname'] != $cpage['urlname_nons'] );
if ( !isset($paths->nslist[ $page_info['namespace'] ]) )
{
@@ -1515,6 +1515,8 @@
// Build the WHERE statements
$q .= ' WHERE ';
$k = array_keys($cpage);
+ if ( !isset($cpage) )
+ die('no cpage');
foreach($k as $c)
{
if($c != 'urlname_nons' && $c != 'urlname' && $c != 'really_protected')