Whitelist/blacklist does not support URL-encoding
-
When trying to save links with URL-encoded characters (e.g.
%20
) to the whitelist or blacklist, the URL-encoded parts are removed. This is most likely because the field values are passed throughsanitize_textarea_field()
, which removes “octets” (URL-encoded characters).URL encoding is used for symbols and non-Latin (e.g. CJK) characters, and are valid parts of URLs. I believe within WordPress links are also URL-encoded, which means even if I copy-and-paste the actual non-URL-encoded characters into the whitelist/blacklist fields, these whitelist/blacklist URLs would still not match the links generated by WordPress.
Would be great if this can be fixed – thanks!
- The topic ‘Whitelist/blacklist does not support URL-encoding’ is closed to new replies.