Permalink
Browse files

cleanPath() ahora reemplaza las backslashes por slashes antes de real…

…izar la limpieza, para evitar conflictos en sistemas windows.
  • Loading branch information...
1 parent 766fa3e commit d14cd47594a1ac1439100e7a9acb75d18ac90e27 @sahibalejandro committed Nov 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/classes/QuarkString.php
@@ -39,7 +39,7 @@ public function setCharset($charset)
*/
public function cleanPath($path)
{
- return preg_replace('/(^\/|\/$)/', '', preg_replace('/\/{2,}/', '/', $path));
+ return preg_replace('/(^\/|\/$)/', '', preg_replace('/\/{2,}/', '/', str_replace("\\", '/', $path)));
}
/**

0 comments on commit d14cd47

Please sign in to comment.