From: <ru...@us...> - 2010-06-07 12:16:23
|
Revision: 7481 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7481&view=rev Author: rurban Date: 2010-06-07 12:14:25 +0000 (Mon, 07 Jun 2010) Log Message: ----------- enable windows check again Modified Paths: -------------- trunk/lib/FileFinder.php Modified: trunk/lib/FileFinder.php =================================================================== --- trunk/lib/FileFinder.php 2010-06-07 12:12:17 UTC (rev 7480) +++ trunk/lib/FileFinder.php 2010-06-07 12:14:25 UTC (rev 7481) @@ -156,7 +156,7 @@ * @return bool True if path is absolute. */ function _is_abs($path) { - if (preg_match('#^/#', $path)) { + if (substr($path,0,1) == '/') { return true; } elseif (isWindows() and (preg_match('#^[a-z]:[/\\]#i', $path))) { return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |