[svn r22338] changed function - (partial FS#4400)

skala
Arthur Portugal 17 years ago
parent 17974744a4
commit 312bd5e9bd
  1. 6
      main/inc/lib/security.lib.php

@ -52,7 +52,7 @@
* @author Yannick Warnier <yannick.warnier@dokeos.com>
*/
class Security {
public $clean = array();
public static $clean = array();
/**
* Checks if the absolute path (directory) given is really under the
* checker path (directory)
@ -232,8 +232,8 @@ class Security {
* @return mixed Variable or NULL on error
*/
public static function get ($varname) {
if (isset($this->clean[$varname])) {
return $this->clean[$varname];
if (isset(self::$clean[$varname])) {
return self::$clean[$varname];
}
return NULL;
}

Loading…
Cancel
Save