diff options
author | Daniel Lange <DLange@git.local> | 2017-02-20 18:12:46 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2017-02-20 18:12:46 +0100 |
commit | 335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70 (patch) | |
tree | 6dfb123b3ff27b46bcdf9ef9acf8fa41bffec946 /lib/HTTP/WebDAV/Server.php | |
parent | 7a4da3f67cb891cd5408bb4b511a54ccf9662485 (diff) | |
download | phpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.tar.gz phpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.tar.bz2 phpicalendar-335d3c5c9c0b24ff5e07cd1968236a8dbc4f2c70.zip |
PHP 7 compatibility from Sourceforge #680
Diffstat (limited to 'lib/HTTP/WebDAV/Server.php')
-rw-r--r-- | lib/HTTP/WebDAV/Server.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/HTTP/WebDAV/Server.php b/lib/HTTP/WebDAV/Server.php index 2d5785d..489d313 100644 --- a/lib/HTTP/WebDAV/Server.php +++ b/lib/HTTP/WebDAV/Server.php @@ -920,7 +920,7 @@ class HTTP_WebDAV_Server if (isset($_SERVER['HTTP_RANGE'])) { // we only support standard 'bytes' range specifications for now - if (ereg('bytes[[:space:]]*=[[:space:]]*(.+)', $_SERVER['HTTP_RANGE'], $matches)) { + if (preg_match('@bytes[[:space:]]*=[[:space:]]*(.+)@', $_SERVER['HTTP_RANGE'], $matches)) { $options['ranges'] = array(); // ranges are comma separated @@ -2180,7 +2180,7 @@ class HTTP_WebDAV_Server // but if opaquelocktokens are used (RFC2518 6.4) // we have to check the format (litmus tests this) if (!strncmp($condition, '<opaquelocktoken:', strlen('<opaquelocktoken'))) { - if (!ereg('^<opaquelocktoken:[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}>$', $condition)) { + if (!preg_match('/^<opaquelocktoken:[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}>$/', $condition)) { return; } } |