1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Stefan Winter <restena-sw@users.noreply.github.com>
Date: Thu, 18 Oct 2018 07:24:07 +0200
Subject: [PATCH] make regex PCRE2 compliant
PHP7.3 makes a hard switch from PCRE to PCRE2, where the hyphen needs to be escaped. I've tested and confirmed that with PHP 7.3rc3
- the code as was before this PR breaks with a PHP error about unable to compile the regex
- the code with this one-character PR applied works just fine
---
src/Utils/XPath.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Utils/XPath.php b/src/Utils/XPath.php
index 11e51fb..8cdc48e 100644
--- a/vendor/robrichards/xmlseclibs/src/Utils/XPath.php
+++ b/vendor/robrichards/xmlseclibs/src/Utils/XPath.php
@@ -7,7 +7,7 @@ class XPath
const ALPHANUMERIC = '\w\d';
const NUMERIC = '\d';
const LETTERS = '\w';
- const EXTENDED_ALPHANUMERIC = '\w\d\s-_:\.';
+ const EXTENDED_ALPHANUMERIC = '\w\d\s\-_:\.';
const SINGLE_QUOTE = '\'';
const DOUBLE_QUOTE = '"';
|