| @@ 3295-3298 (lines=4) @@ | ||
| 3292 | if (($p_path != "./") && ($p_path != "/")) |
|
| 3293 | { |
|
| 3294 | // ----- Look for the path end '/' |
|
| 3295 | while (substr($p_path, -1) == "/") |
|
| 3296 | { |
|
| 3297 | $p_path = substr($p_path, 0, strlen($p_path)-1); |
|
| 3298 | } |
|
| 3299 | } |
|
| 3300 | ||
| 3301 | // ----- Look for path to remove format (should end by /) |
|
| @@ 3648-3650 (lines=3) @@ | ||
| 3645 | $body = str_replace("\r\n", "\n", $body); |
|
| 3646 | $body = str_replace("\n", "\r\n", $body); |
|
| 3647 | // END stabilize line endings |
|
| 3648 | while (substr($body, strlen($body) - 4, 4) == "\r\n\r\n") { |
|
| 3649 | $body = substr($body, 0, strlen($body) - 2); |
|
| 3650 | } |
|
| 3651 | return $body; |
|
| 3652 | } |
|
| 3653 | ||