|
@@ 42-45 (lines=4) @@
|
| 39 |
|
|
| 40 |
|
public static function cleanPathname($path) { |
| 41 |
|
if (UString::isNotNull($path)) { |
| 42 |
|
if (DS === "/") |
| 43 |
|
$path=\str_replace("\\", DS, $path); |
| 44 |
|
else |
| 45 |
|
$path=\str_replace("/", DS, $path); |
| 46 |
|
$path=\str_replace(DS . DS, DS, $path); |
| 47 |
|
if (!UString::endswith($path, DS)) { |
| 48 |
|
$path=$path . DS; |
|
@@ 56-59 (lines=4) @@
|
| 53 |
|
|
| 54 |
|
public static function cleanFilePathname($path) { |
| 55 |
|
if (UString::isNotNull($path)) { |
| 56 |
|
if (DS === "/") |
| 57 |
|
$path=\str_replace("\\", DS, $path); |
| 58 |
|
else |
| 59 |
|
$path=\str_replace("/", DS, $path); |
| 60 |
|
$path=\str_replace(DS . DS, DS, $path); |
| 61 |
|
} |
| 62 |
|
return $path; |