Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replace function preg_split by explode when possible.

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information...
commit 911a99bf232b81ac320f59add5f9a8d0a2e6e198 1 parent df9e1e0
@jrbasso jrbasso authored markstory committed
Showing with 2 additions and 2 deletions.
  1. +1 −1  cake/dispatcher.php
  2. +1 −1  cake/libs/http_socket.php
View
2  cake/dispatcher.php
@@ -515,7 +515,7 @@ function uri() {
if (key($_GET) && strpos(key($_GET), '?') !== false) {
unset($_GET[key($_GET)]);
}
- $uri = preg_split('/\?/', $uri, 2);
+ $uri = explode('?', $uri, 2);
if (isset($uri[1])) {
parse_str($uri[1], $_GET);
View
2  cake/libs/http_socket.php
@@ -854,7 +854,7 @@ function parseCookies($header) {
foreach ((array)$header['Set-Cookie'] as $cookie) {
if (strpos($cookie, '";"') !== false) {
$cookie = str_replace('";"', "{__cookie_replace__}", $cookie);
- $parts = str_replace("{__cookie_replace__}", '";"', preg_split('/\;/', $cookie));
+ $parts = str_replace("{__cookie_replace__}", '";"', explode(';', $cookie));
} else {
$parts = preg_split('/\;[ \t]*/', $cookie);
}
Please sign in to comment.
Something went wrong with that request. Please try again.