[zi-cvs] packages/com.zzoss.installer.lib Utils.php,1.5,1.6
Christian Zonsius <[email protected]> Tue, 23 Mar 2004 15:14:53 +0000
| Newsgroups | gmane.comp.php.zzoss.installer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/zzossinstaller/packages/com.zzoss.installer.lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14084
Modified Files:
Utils.php
Log Message:
corrected fixPath function
Index: Utils.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.installer.lib/Utils.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Utils.php 21 Jan 2004 18:16:14 -0000 1.5
--- Utils.php 23 Mar 2004 15:14:48 -0000 1.6
***************
*** 434,438 ****
$slash = DIRECTORY_SEPARATOR;
}
! $path = preg_replace('/\/{2,}|\\\{1,}/i', $slash, $path);
return $path;
}
--- 434,442 ----
$slash = DIRECTORY_SEPARATOR;
}
! $path = str_replace('/', $slash, $path);
! $path = str_replace('\\', $slash, $path);
! $path = str_replace($slash.'.'.$slash, $slash, $path);
! $path = preg_replace('/\/{2,}|\\\{1,}/i', $slash, $path);
! $path = preg_replace('/\.$/', '', $path);
return $path;
}
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click