Welcome Guest, Not a member yet? Register   Sign In
The URI you submitted has disallowed characters?
#1

[eluser]ownersbox[/eluser]
Hi Guys,

I searched the forums and found similar problems to mine but the solutions did not work. Here are the details, any help is appreciated

My URL (No Space in the actual url)
Code:
http://www.mydomain.com/verify/ownersbox% 40mydomain.com/7a2347d96752880e3d58d72e9813cc14

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

htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>

ErrorDocument 404 /index.php
</IfModule>
#2

[eluser]Dam1an[/eluser]
try it without the % 4 0 (without the spaces, as % 4 0 is @)
I have a feeling its interpreting that as whatever character that translates to (like % 2 0 is a space etc)

Or, just add @ to allowed characters
#3

[eluser]ownersbox[/eluser]
Are you suggesting that as a solution or to determine where the problem is? I will test it now but ultimately I need to include a proper email or some alternative
#4

[eluser]Dam1an[/eluser]
initially I suggested removing % 40 to check if that was cauing the problem... then I found out it means @ as thats what the forum translated it to, so the solution would be to add @ to allowed characters
#5

[eluser]ownersbox[/eluser]
the % 40 was the issue, any idea how to fix it? I have % in the allowed characters.
#6

[eluser]Dam1an[/eluser]
Have you tried adding '@'?
#7

[eluser]ownersbox[/eluser]
I set
$config['permitted_uri_chars'] = 'a-z 0-9~%.Angry=_\-';

but I am getting a 404 error

I appreciate your help
#8

[eluser]Dam1an[/eluser]
Its definatly progress
What have you got in your routes file that is supposed to match this?
#9

[eluser]ownersbox[/eluser]
I'm sorry this little project is my first try with CI, I haven't modified my routes file besides setting my default_controller. How should I modify it?

Again thank you
#10

[eluser]Dam1an[/eluser]
In which case, a little background reading is in order Smile

Whats happening is, at the moment, CI is looking for a function with the name of the email address in the verify controller (passing the key as a paramter)

What you want to do, is map it to a controller (such as account) to the verify fuction, passing the email and key as the 2 parameters




Theme © iAndrew 2016 - Forum software by © MyBB