Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 656)
+++ trunk/CHANGELOG	(revision 657)
@@ -10,7 +10,10 @@
 # = Bugfix
 ! = Update/Change
 
-------------------------------------- 2.7.0 -------------------------------------
+------------------------------------- 2.7.0 -------------------------------------
+02-Feb-2008 Thomas Hornik
+!	settings: pages-directory '/' will be converted to '' (empty string) on save.
+!	changed last remaining call to my_htmlspecialchars() to htmlspecialchars()
 01-Feb-2008 Christian Sommer
 #	Added default index.php to all folders to prevent directory spoofing
 01-Feb-2008 Thomas Hornik
Index: trunk/wb/admin/pages/add.php
===================================================================
--- trunk/wb/admin/pages/add.php	(revision 656)
+++ trunk/wb/admin/pages/add.php	(revision 657)
@@ -33,7 +33,7 @@
 
 // Get values
 $title = $admin->get_post_escaped('title');
-$title = my_htmlspecialchars($title);
+$title = htmlspecialchars($title);
 $module = $admin->get_post('type');
 $parent = $admin->get_post('parent');
 $visibility = $admin->get_post('visibility');
Index: trunk/wb/admin/settings/save.php
===================================================================
--- trunk/wb/admin/settings/save.php	(revision 656)
+++ trunk/wb/admin/settings/save.php	(revision 657)
@@ -149,6 +149,9 @@
 			case 'string_file_mode':
 				$value=$file_mode;
 				break;
+			case 'pages_directory':
+				if(trim($value)=='/') $value='';
+				break;
 		}
 		$database->query("UPDATE ".TABLE_PREFIX."settings SET value = '$value' WHERE name = '$setting_name'");
 	}
