1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-05 21:57:26 +02:00

feat: Define option URI.AllowedSymbols (#447)

This commit is contained in:
Tim Otten
2025-06-05 19:46:45 -07:00
committed by GitHub
parent 127ee2f252
commit 77ebd08632
3 changed files with 9 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ class HTMLPurifier_URI
public function validate($config, $context)
{
// ABNF definitions from RFC 3986
$chars_sub_delims = '!$&\'()*+,;=';
$chars_sub_delims = $config->get('URI.AllowedSymbols');
$chars_gen_delims = ':/?#[]@';
$chars_pchar = $chars_sub_delims . ':@';