From 884ebec4f59750320dc2f88d9c82e013a549504f Mon Sep 17 00:00:00 2001 From: rboren Date: Sat, 18 Sep 2004 05:49:10 +0000 Subject: [PATCH] Remove extra slashes from permalink structure. git-svn-id: http://svn.automattic.com/wordpress/trunk@1689 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-permalink.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index a252752e4..1288b26fd 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -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'];