Remove extra slashes from permalink structure.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-09-18 05:49:10 +00:00
parent 3ec0bc86c0
commit 884ebec4f5
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ if ( $home != '' && $home != get_settings('siteurl') ) {
}
if (isset($_POST['submit'])) {
update_option('permalink_structure', $_POST['permalink_structure']);
$permalink_structure = $_POST['permalink_structure'];
$permalink_structure = preg_replace('#/+/#', '/', $_POST['permalink_structure']);
update_option('permalink_structure', $permalink_structure);
update_option('category_base', $_POST['category_base']);
$category_base = $_POST['category_base'];