06.06 php saved
renan_saddam
Tags add more
 
Note
This part of code is not used in any case.
If I try _getViewFileName('..index') is returns "\..\" (without index)
  1. Index: C:/Projetos/Cake_1.2.x.x/cake/libs/view/view.php
  2. ===================================================================
  3. --- C:/Projetos/Cake_1.2.x.x/cake/libs/view/view.php    (revision 7130)
  4. +++ C:/Projetos/Cake_1.2.x.x/cake/libs/view/view.php    (working copy)
  5. @@ -777,12 +777,6 @@
  6.           } else {
  7.              $name = $this->viewPath . DS . $subDir . $name;
  8.           }
  9. -      } elseif (strpos($name, '..') !== false) {
  10. -         $name = explode('/', $name);
  11. -         $i = array_search('..', $name);
  12. -         unset($name[$i - 1]);
  13. -         unset($name[$i]);
  14. -         $name = '..' . DS . implode(DS, $name);
  15.        }
  16.        $paths = $this->_paths($this->plugin);
  17.  
  18.  
Parsed in 0.036 seconds, using GeSHi 1.0.7.14

Modify this Paste