aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/HTTP/HTTPClient.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2020-06-30 09:11:54 +0200
committerGitHub <noreply@github.com>2020-06-30 09:11:54 +0200
commit8e51f8a889365e9caf375532493e68e4f3d35140 (patch)
treeff6f7968d3d082218183639f2643041fe795e8d0 /inc/HTTP/HTTPClient.php
parent6d5aa565f413c0cb3a53328e43bab9d34977517c (diff)
parent03c2c4287762fbe8b950852d623d00f9260757ba (diff)
downloaddokuwiki-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.php2
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];