|
@@ 300-302 (lines=3) @@
|
| 297 |
|
} |
| 298 |
|
|
| 299 |
|
$commonPath = $to; |
| 300 |
|
while (strpos($from . '/', $commonPath . '/') !== 0 && '/' !== $commonPath && !preg_match('{^[a-z]:/?$}i', $commonPath)) { |
| 301 |
|
$commonPath = strtr(dirname($commonPath), '\\', '/'); |
| 302 |
|
} |
| 303 |
|
|
| 304 |
|
if (0 !== strpos($from, $commonPath) || '/' === $commonPath) { |
| 305 |
|
return $to; |
|
@@ 340-342 (lines=3) @@
|
| 337 |
|
} |
| 338 |
|
|
| 339 |
|
$commonPath = $to; |
| 340 |
|
while (strpos($from . '/', $commonPath . '/') !== 0 && '/' !== $commonPath && !preg_match('{^[a-z]:/?$}i', $commonPath) && '.' !== $commonPath) { |
| 341 |
|
$commonPath = strtr(dirname($commonPath), '\\', '/'); |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
if (0 !== strpos($from, $commonPath) || '/' === $commonPath || '.' === $commonPath) { |
| 345 |
|
return var_export($to, true); |