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:
@@ -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 . ':@';
|
||||
|
||||
|
Reference in New Issue
Block a user