| @@ -207,9 +207,9 @@ | ||
| 207 | 207 | stream_set_timeout($this->conn, 300); |
| 208 | 208 | while (!feof($this->conn)) { |
| 209 | 209 | $line = fgets($this->conn, 4096); |
| 210 | 210 | if (1 == $state) { |
| 211 | - if (!WPRHelper::safePregMatch('/HTTP\/(\\d\\.\\d)\\s*(\\d+)\\s*(.*)/', $line, $m)) { | |
| 211 | + if (!preg_match('/HTTP\/(\\d\\.\\d)\\s*(\\d+)\\s*(.*)/', $line, $m)) { | |
| 212 | 212 | $response['httperror'] = "Status code line invalid: ".htmlentities($line); |
| 213 | 213 | return $response; |
| 214 | 214 | } |
| 215 | 215 | $response['http_version'] = $m[1]; |
| @@ -222,9 +222,9 @@ | ||
| 222 | 222 | if ($conlen > 0) |
| 223 | 223 | $response['body'] = fread($this->conn, $conlen); |
| 224 | 224 | return $response; |
| 225 | 225 | } |
| 226 | - if (!WPRHelper::safePregMatch('/([^:]+):\\s*(.*)/', $line, $m)) { | |
| 226 | + if (!preg_match('/([^:]+):\\s*(.*)/', $line, $m)) { | |
| 227 | 227 | // Skip to the next header |
| 228 | 228 | continue; |
| 229 | 229 | } |
| 230 | 230 | $key = strtolower(trim($m[1])); |