Changeset 30253 in spip-zone for _plugins_/simpletest/simpletest/http.php
- Timestamp:
- Jul 27, 2009, 3:26:42 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/simpletest/simpletest/http.php
r24737 r30253 317 317 $this->_authentication = false; 318 318 $this->_realm = false; 319 foreach ( split("\r\n", $headers) as $header_line) {319 foreach (preg_split(",\r\n,", $headers) as $header_line) { 320 320 $this->_parseHeaderLine($header_line); 321 321 } … … 458 458 */ 459 459 function _parseCookie($cookie_line) { 460 $parts = split(";", $cookie_line);460 $parts = explode(";", $cookie_line); 461 461 $cookie = array(); 462 462 preg_match('/\s*(.*?)\s*=(.*)/', array_shift($parts), $cookie); … … 522 522 $this->_headers = &new SimpleHttpHeaders($raw); 523 523 } else { 524 list($headers, $this->_content) = split("\r\n\r\n", $raw, 2);524 list($headers, $this->_content) = preg_split(",\r\n\r\n,", $raw, 2); 525 525 $this->_headers = &new SimpleHttpHeaders($headers); 526 526 }
Note: See TracChangeset
for help on using the changeset viewer.