Skip to content
Snippets Groups Projects
  1. May 29, 2013
  2. Apr 24, 2013
  3. Mar 20, 2013
  4. Mar 15, 2013
  5. Feb 22, 2013
  6. Feb 16, 2013
  7. Feb 14, 2013
  8. Feb 10, 2013
  9. Feb 07, 2013
  10. Jan 26, 2013
  11. Jan 25, 2013
  12. Jan 19, 2013
  13. Jan 18, 2013
  14. Jan 16, 2013
  15. Jan 14, 2013
  16. Jan 13, 2013
    • Lukas Reschke's avatar
      Commentblocks should begin with two * · b7db967d
      Lukas Reschke authored
      b7db967d
    • Lukas Reschke's avatar
      Add @brief to description · c27833b1
      Lukas Reschke authored
      c27833b1
    • Lukas Reschke's avatar
      Simplify the isSubDirectory() function · e151210a
      Lukas Reschke authored
      isSubDirectory() checks if a specified $sub is a subdirectory of the
      $parent, this is needed to prevent file inclusions.
      
      Actually, the current code is more kind of a "hack" which I always
      struggle over if browsing through source. So this should be a much
      better implementation.
      
      The implementation is really straightforward:
      - [realpath()](http://php.net/manual/function.realpath.php) expands all
      symbolic links and resolves references to '/./', '/../' and extra '/'
      characters in the input path and return the canonicalized absolute
      pathname.
      - [strpos()](php.net/manual/function.strpos.php) returns FALSE if the
      substring wasn't found.
      
      Since this is an absolutely critical piece of code, I'd like to ensure
      that this is absolutely safe!
      e151210a
  17. Jan 04, 2013
  18. Jan 02, 2013
  19. Dec 20, 2012
  20. Dec 14, 2012
  21. Nov 20, 2012
  22. Nov 14, 2012
  23. Nov 12, 2012
  24. Nov 08, 2012
  25. Nov 04, 2012
  26. Nov 02, 2012
  27. Oct 28, 2012
  28. Oct 26, 2012
  29. Oct 23, 2012
Loading