Ignore:
Timestamp:
11/12/09 18:41:57 (10 months ago)
Author:
sidtheduck
Message:

First round of RC-1 bug fixes

  • Fix for double slashes when included in root directory (including fix for Windows servers)
  • Fix for add_album() returning nil or '0' id due to missing database handler when calling mysql_insert_id()
  • Removal of unneeded code in latest comments plugin
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plog-load-config.php

    r602 r607  
    9494// if mod_rewrite is on and we're not embedded, remove the file basename 
    9595if ($config['use_mod_rewrite'] == 1 && $config['embedded'] == 0) { 
    96         $config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/'; 
     96        $config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']); 
     97        // Verify URL for a trailing slash.  If not, add one. 
     98        if ($config['baseurl']{strlen($config['baseurl'])-1} != '/') { 
     99                $config['baseurl'] = $config['baseurl'].'/'; 
     100        } 
    97101// otherwise just use our cleaned up version of $_SERVER['PHP_SELF'] from plog-globals.php 
    98102} else { 
Note: See TracChangeset for help on using the changeset viewer.