WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/18/2004 05:49:10 AM (17 years ago)
Author:
rboren
Message:

Remove extra slashes from permalink structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-permalink.php

    r1664 r1689  
    2222
    2323if (isset($_POST['submit'])) {
    24     update_option('permalink_structure', $_POST['permalink_structure']);
    25     $permalink_structure = $_POST['permalink_structure'];
     24    $permalink_structure = preg_replace('#/+/#', '/', $_POST['permalink_structure']);
     25    update_option('permalink_structure', $permalink_structure);
    2626
    2727    update_option('category_base', $_POST['category_base']);
Note: See TracChangeset for help on using the changeset viewer.