Changeset 5912 for trunk/phpgwapi/inc/class.xmlrpcmsg.inc.php
- Timestamp:
- 04/11/12 12:04:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.xmlrpcmsg.inc.php
r5509 r5912 157 157 // see if we got an HTTP 200 OK, else bomb 158 158 // but only do this if we're using the HTTP protocol. 159 if ( ereg("^HTTP",$data) && !ereg("^HTTP/[0-9.]+ 200 ", $data))159 if (preg_match('/^HTTP/',$data) && !preg_match('/^HTTP/[0-9.]+ 200 /', $data)) 160 160 { 161 161 $errstr = substr($data, 0, strpos($data, "\n")-1); … … 169 169 // if using HTTP, then gotta get rid of HTTP headers here 170 170 // and we store them in the 'ha' bit of our data array 171 if ( ereg("^HTTP", $data))171 if (preg_match('/^HTTP/', $data)) 172 172 { 173 173 $ar=explode("\r\n", $data);
Note: See TracChangeset
for help on using the changeset viewer.