~ubuntu-branches/ubuntu/quantal/dokuwiki/quantal

« back to all changes in this revision

Viewing changes to lib/plugins/config/settings/config.class.php

  • Committer: Package Import Robot
  • Author(s): Tanguy Ortolo
  • Date: 2012-01-26 23:10:28 UTC
  • mfrom: (1.1.14) (19.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20120126231028-gdcxrxo3j4jqp2de
Tags: 0.0.20120125-1
* New upstream release.
* debian/patches/debianize.diff: updated for the new release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
 
101
101
      if ($this->locked) return false;
102
102
 
103
 
#      $file = eval('return '.$this->_local_file.';');
104
 
      $file = $this->_local_files[0];
 
103
      // write back to the last file in the local config cascade
 
104
      $file = end($this->_local_files);
105
105
 
106
106
      // backup current file (remove any existing backup)
107
107
      if (@file_exists($file) && $backup) {
341
341
    var $_input = NULL;             // only used by those classes which error check
342
342
 
343
343
    var $_cautionList = array(
344
 
        'basedir' => 'danger', 'baseurl' => 'danger', 'savedir' => 'danger', 'useacl' => 'danger', 'authtype' => 'danger', 'superuser' => 'danger', 'userewrite' => 'danger',
 
344
        'basedir' => 'danger', 'baseurl' => 'danger', 'savedir' => 'danger', 'cookiedir' => 'danger', 'useacl' => 'danger', 'authtype' => 'danger', 'superuser' => 'danger', 'userewrite' => 'danger',
345
345
        'start' => 'warning', 'camelcase' => 'warning', 'deaccent' => 'warning', 'sepchar' => 'warning', 'compression' => 'warning', 'xsendfile' => 'warning', 'renderer_xhtml' => 'warning', 'fnencode' => 'warning',
346
346
        'allowdebug' => 'security', 'htmlok' => 'security', 'phpok' => 'security', 'iexssprotect' => 'security', 'xmlrpc' => 'security', 'fullpath' => 'security'
347
347
    );
774
774
          if ($entry == '.' || $entry == '..') continue;
775
775
          if ($this->_pattern && !preg_match($this->_pattern,$entry)) continue;
776
776
 
777
 
          $file = (is_link($this->_dir.$entry)) ? readlink($this->_dir.$entry) : $entry;
778
 
          if (is_dir($this->_dir.$file)) $list[] = $entry;
 
777
          $file = (is_link($this->_dir.$entry)) ? readlink($this->_dir.$entry) : $this->_dir.$entry;
 
778
          if (is_dir($file)) $list[] = $entry;
779
779
        }
780
780
        closedir($dh);
781
781
      }