예제 #1
0
 /**
  * Path disclosure protection functions
  *
  * Get a callback function to use for cleaning error message parameters
  */
 function getErrorCleanupFunction()
 {
     switch ($this->pathDisclosureProtection) {
         case 'simple':
             $callback = array($this, 'simpleClean');
             break;
         default:
             $callback = parent::getErrorCleanupFunction();
     }
     return $callback;
 }
예제 #2
0
 /**
  * @param bool|FileRepo $repo
  */
 function __construct($repo = false)
 {
     if ($repo) {
         $this->cleanCallback = $repo->getErrorCleanupFunction();
     }
 }