modxcms/evolution — pull request #91 by Jako (2013-03-05 22:07:25+00:00)
Title: Better modx_sanitize_gpc - 3nd try

In the old version, MODX tags separated in two superglobal array members were not sanitized. But if they are shown in the right order, the tags are evaluated by the parser.

Rewritten/modified the code from the japanese community.

Tags are converted into hexadecimal entities in GPC keys and values. Otherwise [<​b​>[ code is not sanitized but after a strip_tags it is a valid MODX tag.