Skip to content

Commit

Permalink
Allows commas in tel URI scheme validator (addresses #388)
Browse files Browse the repository at this point in the history
  • Loading branch information
danbrellis committed Nov 10, 2023
1 parent ab21ea7 commit 8429f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/HTMLPurifier/URIScheme/tel.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function doValidate(&$uri, $config, $context)

// Delete all non-numeric characters, 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', rawurldecode($uri->path)));

Expand Down

0 comments on commit 8429f7b

Please sign in to comment.