aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/tel.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-03 10:56:03 +0000
committerMario <mario@mariovavti.com>2024-01-03 10:56:03 +0000
commitd3e5d05026feec42f5836f821982e0cc59d91353 (patch)
treec491026b2926ca4de0df363435bdc05dbd498cff /vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/tel.php
parent322b619a7122fa812321ceb67016e0b1ce4affb6 (diff)
downloadvolse-hubzilla-d3e5d05026feec42f5836f821982e0cc59d91353.tar.gz
volse-hubzilla-d3e5d05026feec42f5836f821982e0cc59d91353.tar.bz2
volse-hubzilla-d3e5d05026feec42f5836f821982e0cc59d91353.zip
update ezyang/htmlpurifier
Diffstat (limited to 'vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/tel.php')
-rw-r--r--vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/tel.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/tel.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/tel.php
index 8cd193352..dfad8efcf 100644
--- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/tel.php
+++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/tel.php
@@ -33,11 +33,11 @@ class HTMLPurifier_URIScheme_tel extends HTMLPurifier_URIScheme
$uri->host = null;
$uri->port = null;
- // Delete all non-numeric characters, non-x characters
+ // Delete all non-numeric characters, commas, and non-x characters
// from phone number, EXCEPT for a leading plus sign.
- $uri->path = preg_replace('/(?!^\+)[^\dx]/', '',
+ $uri->path = preg_replace('/(?!^\+)[^\dx,]/', '',
// Normalize e(x)tension to lower-case
- str_replace('X', 'x', $uri->path));
+ str_replace('X', 'x', rawurldecode($uri->path)));
return true;
}