ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Trouble in custom module - The URI you submitted has disallowed characters?

January 25, 2011 9:30am

Subscribe [3]
  • #1 / Jan 25, 2011 9:30am

    Hi guys,

    I built a custom Poll module for a client and, by using actions, I handle a submitted form:

    URL: http://lians.ca/?ACT=39
    OR
    URL: http://lians.ca/index.php?ACT=39

    I’ve tried removing .htaccess, that didn’t work.  I tried emptying my cookies, no luck there either; I’ve even tried just going to the URL without submitting POST data, didn’t work either.

    I’m assuming it’s the query string (?) in the URL that’s triggering the error message.

    Any ideas? I’m banging my head against the desk here.

    Edit:  Using ExpressionEngine 2.1.3.

  • #2 / Jan 25, 2011 5:39pm

    Aaron Waldon

    66 posts

    Hi durg,

    CodeIgniter (and by extension EE2) have a config setting in /system/expressionengine/config.php that allows you to specify what characters are allowed in the URL.

    I generally change the default of this:

    $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\\-';

    to this:

    $config['permitted_uri_chars'] = 'a-z 0-9~%\.:_\-?=&';

    I sometime also need to change this:

    $config['uri_protocol'] = 'AUTO';

    to this:

    $config['uri_protocol'] = 'PATH_INFO';

    in order to get query strings to work properly with my personal installation.

    I hope this info helps you out!

  • #3 / Jan 26, 2011 8:49am

    Sue Crocker

    26054 posts

    Thanks for the assist, Aaron.

    durg, this is beyond the scope for technical support. I can move this to the Development forum if you need additional information.

    Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases