wiki:Documentation/Plugins/EncodeOutput

Version 1 (modified by gogo, 5 weeks ago) (diff)

--

Plugin: EncodeOutput

Back to Plugins

This plugin makes Xinha encode the edited HTML in one of several ways immediately prior to submitting it back to your server. This is useful for avoiding "mod_security" issues where "mod_security" may detect HTML being submitted to your server and cancel the submission (typically with a 403 error).

Responsibility for decoding the encoded response is yours, EncodeOutput only encodes, not decodes!

Configuration

See the NewbieGuide for how to set configuration values in general, the below configuration options are available for this plugin.

xinha_config.EncodeOutput = 
{
  // One of
  // 
  //   r13   - html is rot13 (alphanum only is rotated)      -- prefix :!r13!:
  //   b64   - html is base64 encoded                        -- prefix :!b64!:
  //   64r   - html is base64 encoded and then that is rot13 -- prefix :!64r!:
  //   r64   - html is rot13 and then that is base64         -- prefix :!r64!:
  //
  //   false - no encoding performed (decoding still will if prefixed)
  
  encoder:   'r13'
  
};