cvs: pear /File_Find Find.php

From: Date: Tue, 20 Sep 2005 11:33:18 +0000
Subject: cvs: pear /File_Find Find.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-34870@lists.php.net to get a copy of this message
techtonik Tue Sep 20 07:33:18 2005 EDT Modified files: /pear/File_Find Find.php Log: - correct regexp because PHP escapes backslashes too http://cvs.php.net/diff.php/pear/File_Find/Find.php?r1=1.20&r2=1.21&ty=u Index: pear/File_Find/Find.php diff -u pear/File_Find/Find.php:1.20 pear/File_Find/Find.php:1.21 --- pear/File_Find/Find.php:1.20 Tue Sep 13 10:35:32 2005 +++ pear/File_Find/Find.php Tue Sep 20 07:33:15 2005 @@ -16,7 +16,7 @@ // | Author: Sterling Hughes <sterling@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Find.php,v 1.20 2005/09/13 14:35:32 techtonik Exp $ +// $Id: Find.php,v 1.21 2005/09/20 11:33:15 techtonik Exp $ // require_once 'PEAR.php'; @@ -28,7 +28,7 @@ * Commonly needed functions searching directory trees * * @access public -* @version $Id: Find.php,v 1.20 2005/09/13 14:35:32 techtonik Exp $ +* @version $Id: Find.php,v 1.21 2005/09/20 11:33:15 techtonik Exp $ * @package File * @author Sterling Hughes <sterling@php.net> */ @@ -123,9 +123,9 @@ $this->directories = array(); /* consistency rules - strip out trailing slashes */ - $directory = preg_replace('![\\/]+$!', '', $directory); + $directory = preg_replace('![\\\\/]+$!', '', $directory); /* use only native system directory delimiters */ - $directory = preg_replace("![\\/]+!", DIRECTORY_SEPARATOR, $directory); + $directory = preg_replace("![\\\\/]+!", DIRECTORY_SEPARATOR, $directory); $this->_dirs = array($directory);

« previous php.pear.cvs (#34870) next »