src/bbn/mvc/common.php
private function check_path(){
    $ar = \func_get_args();
    foreach ( $ar as $a ){
      $b = bbn\str::parse_path($a, true);
      if ( empty($b) && !empty($a) ){
        $this->error("The path $a is not an acceptable value");
        return false;
      }
    }
    return 1;
  }
private function check_path(){
    $ar = \func_get_args();
    foreach ( $ar as $a ){
      $b = bbn\str::parse_path($a, true);
      if ( empty($b) && !empty($a) ){
        $this->error("The path $a is not an acceptable value");
        return false;
      }
    }
    return 1;
  }
private function check_path ( ) { $ ar = \ func_get_args ( ) ; foreach ( $ ar as $ a ) { $ b = bbn \ str :: parse_path ( $ a , true ) ; if ( empty ( $ b ) && ! empty ( $ a ) ) { $ this -> error ( "The path $a is not an acceptable value" ) ; return false ; } } return 1 ; }
This checks whether an argument used for getting controller, view or model - which are files - doesn't contain malicious content.

@param string $p The request path <em>(e.g books/466565 or html/home)</em>
@return bool
This checks whether an argument used for getting controller view or model - which are files - doesn t contain malicious content .