Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/14/2008 12:19:52 PM (17 years ago)
Author:
sambauers
Message:

Better stripping of trailing slashes from paths and URLs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/options-wordpress.php

    r1821 r1868  
    2121            $value = stripslashes_deep( $value );
    2222            if (($option == 'wp_siteurl' || $option == 'wp_home') && !empty($value)) {
    23                 $value = rtrim($value, '/') . '/';
     23                $value = rtrim($value, " \t\n\r\0\x0B/") . '/';
    2424            }
    2525            if ( $value ) {
Note: See TracChangeset for help on using the changeset viewer.