Changeset 1119

Show
Ignore:
Timestamp:
10/15/08 16:00:03 (3 months ago)
Author:
bibo
Message:

#715: error in checkTrustedModules function (patch by dubphil thanks)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix/core/jConfigCompiler.class.php

    r1096 r1119  
    44* @subpackage   core 
    55* @author       Jouanneau Laurent 
    6 * @contributor  Thibault PIRONT < nuKs >, Christophe Thiriot 
     6* @contributor  Thibault PIRONT < nuKs >, Christophe Thiriot, Philippe Schelté 
    77* @copyright    2006-2008 Jouanneau laurent 
    8 * @copyright    2007 Thibault PIRONT, 2008 Christophe Thiriot 
     8* @copyright    2007 Thibault PIRONT, 2008 Christophe Thiriot, 2008 Philippe Schelté 
    99* @link         http://www.jelix.org 
    1010* @licence      GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html 
     
    8282            jIniFile::write(get_object_vars($config), JELIX_APP_TEMP_PATH.str_replace('/','~',$configFile).'.resultini.php', ";<?php die('');?>\n"); 
    8383        } 
    84 #elseif WITH_BYTECODE_CACHE  
     84#elseif WITH_BYTECODE_CACHE 
    8585        $filename=JELIX_APP_TEMP_PATH.str_replace('/','~',$configFile).'.conf.php'; 
    8686        if ($f = @fopen($filename, 'wb')) { 
     
    100100     */ 
    101101    static protected function prepareConfig($config){ 
    102          
     102 
    103103        $config->isWindows = (DIRECTORY_SEPARATOR === '\\'); 
    104104        if(trim( $config->startAction) == '') { 
     
    114114        if($config->checkTrustedModules){ 
    115115            $config->_trustedModules = explode(',',$config->trustedModules); 
    116             if(!in_array('jelix',$config->trustedModules)) 
    117                 $config->trustedModules[]='jelix'; 
     116            if(!in_array('jelix',$config->_trustedModules)) 
     117                $config->_trustedModules[]='jelix'; 
    118118        }else{ 
    119119            $config->_trustedModules = array_keys($config->_modulesPathList); 
     
    199199            if(substr($p,-1) !='/') 
    200200                $p.='/'; 
    201             if($k!=0)  
     201            if($k!=0) 
    202202                $allBasePath[]=$p; 
    203203            if ($handle = opendir($p)) { 
     
    219219    static protected function _loadPluginsPathList(&$config){ 
    220220        $list = split(' *, *',$config->pluginsPath); 
    221         array_unshift($list, JELIX_LIB_PATH.'plugins/');  
     221        array_unshift($list, JELIX_LIB_PATH.'plugins/'); 
    222222        foreach($list as $k=>$path){ 
    223223            if(trim($path) == '') continue; 
     
    234234                    if ($f{0} != '.' && is_dir($p.$f)) { 
    235235                        if($subdir = opendir($p.$f)){ 
    236                             if($k!=0)  
     236                            if($k!=0) 
    237237                               $config->_allBasePath[]=$p.$f.'/'; 
    238238                            while (false !== ($subf = readdir($subdir))) { 
  • trunk/lib/jelix/CREDITS

    r1108 r1119  
    181181Philippe Schelte (aka dubphil) 
    182182 - plugin tpl cycle (#149) 
     183 - error in checkTrustedModules function (#715) 
    183184 
    184185Warren Seine (aka SooW) 
Download in other formats: Unified Diff Zip Archive