Skip to:
Content

bbPress.org

Changeset 703


Ignore:
Timestamp:
02/09/2007 05:55:31 AM (17 years ago)
Author:
mdawaffe
Message:

fix for bb_convert_path_base() when server path has url domain in it. Fixes #575

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.php

    r700 r703  
    21082108        $r = $to_base . substr($path, strlen($from_base)) . $last_char;
    21092109    else
    2110         $r = false;
     2110        return false;
     2111
     2112    $r = str_replace(array('//', '\\\\'), array('/', '\\'), $r);
     2113    $r = preg_replace('|:/([^/])|', '://$1', $r);
    21112114
    21122115    return $r;
Note: See TracChangeset for help on using the changeset viewer.