Changeset 1659

Show
Ignore:
Timestamp:
08/26/08 20:40:14 (3 months ago)
Author:
mdawaffe
Message:

run validate_file before prepending with BB_PLUGIN_DIR, BB_CORE_PLUGIN_DIR. Fixes #928

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bb-settings.php

    r1647 r1659  
    892892        foreach ( (array) $plugins as $plugin ) { 
    893893                if ( strpos($plugin, 'core#') === 0 || strpos($plugin, 'user#') === 0 ) { 
     894                        if ( validate_file($plugin) ) // $plugin has .., :, etc. 
     895                                continue; 
     896 
    894897                        $plugin = str_replace( 
    895898                                array('core#', 'user#'), 
     
    900903                                BB_CORE_PLUGIN_DIR != $plugin && 
    901904                                BB_PLUGIN_DIR != $plugin && 
    902                                 0 == validate_file($plugin) && 
    903905                                file_exists( $plugin ) 
    904906                        ) {