disallowed characters using mark, equal, and, semicolon
Hi I would like to access this link at the end of the link but An Error Was Encountered The URI you submitted has disallowed characters.
I need this to get a lightbox using iframe working
?iframe=true&width=1000&height=500
I tried this $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\?=-';
need to add the que开发者_Python百科stion mark, equal, and, semicolon
any help?
In the actual URL you should be using &
to separate arguments (and &
when displaying them in XHTML). However, the ;
should not be invalid because it is a legal GET param separator as well.
The regex you have in your question should permit semi colons if you change it to...
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\?=-;';
That is supposing the above string is substituted into a character range, e.g. [...]
.
Why do you use &
in the URL? The &
by itself is URL-safe. i.e.
?iframe=true&width=1000&height=500
Assuming a WYSIWYG editor or something is spitting out the &
as &
, you should try and prevent it from doing this.
After all, you don't want the url to be interpreted as iframe=true
and amp;width=1000
etc.
精彩评论