Better modx_sanitize_gpc

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. Extended the code from the japanese community.