diff options
author | Andreas Gohr <andi@splitbrain.org> | 2020-06-30 09:11:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 09:11:54 +0200 |
commit | 8e51f8a889365e9caf375532493e68e4f3d35140 (patch) | |
tree | ff6f7968d3d082218183639f2643041fe795e8d0 /inc/HTTP/HTTPClient.php | |
parent | 6d5aa565f413c0cb3a53328e43bab9d34977517c (diff) | |
parent | 03c2c4287762fbe8b950852d623d00f9260757ba (diff) | |
download | dokuwiki-8e51f8a889365e9caf375532493e68e4f3d35140.tar.gz dokuwiki-8e51f8a889365e9caf375532493e68e4f3d35140.zip |
Merge pull request #3173 from fiwswe/patch-1
Update HTTPClient.php
Diffstat (limited to 'inc/HTTP/HTTPClient.php')
-rw-r--r-- | inc/HTTP/HTTPClient.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/HTTP/HTTPClient.php b/inc/HTTP/HTTPClient.php index 99129219a..4aaf47168 100644 --- a/inc/HTTP/HTTPClient.php +++ b/inc/HTTP/HTTPClient.php @@ -329,7 +329,7 @@ class HTTPClient { } // get Status - if (!preg_match('/^HTTP\/(\d\.\d)\s*(\d+).*?\n/', $r_headers, $m)) + if (!preg_match('/^HTTP\/(\d\.\d)\s*(\d+).*?\n/s', $r_headers, $m)) throw new HTTPClientException('Server returned bad answer '.$r_headers); $this->status = $m[2]; |