Codeigniter Redirect -- The URI you submitted has disallowed characters
CodeIgniter checks all URI
segments for disallowed characters. This happens by white listing allowed characters. Which ones are allowed can be checked in /system/application/config/config.php
in the $config['permitted_uri_chars']
variable. permitted_uri_chars
are the characters that CodeIgniter accepts in your URI.The default value is set to something like.
$config['permitted_uri_chars'] = 'a-z 0-9~%.:&_\-';
By default only these are allowed: a-z 0-9~%.:_-
Leave blank to allow all characters -- but only if you are insane.
%22
comes for "
.You can add this in permitted_uri_chars
list.
Codeigniter: URI you submitted has disallowed characters
In /project-folder-name/application/config/config.php configure this variable:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-@\=';
it also works for @ character
Codeigniter: The URI you submitted has disallowed characters when submitting a form
So I feel pretty stupid now. I was trying to submit a file without the multipart :S
here is the corrected code:
<?php echo form_open_multipart('projects/manage?pid='.$project->id);?>
<input type="file" name="userfile"/><br/>
<input type="submit" value="crear"/>
</form>
Related Topics
SQL Query with Binary Data (PHP and MySQL)
Strtolower() for Unicode/Multibyte Strings
Installing Mcrypt on Osx 10.8.2 - PHP 5.3.15 with Homebrew
How to Iterate by Row Through a MySQL Query in PHP
How to Set the Value of a Textbox Through PHP
What Do \R and \N Mean in PHP (And Other Languages)
Set Maximum Execution Time in MySQL/Php
Add a Shipping to an Order Programmatically in Woocommerce 3
Symfony: How to Refresh the Authenticated User from the Database
Swap Two Words in a String PHP
Get/Set Dpi with PHP Gd/Imagick
Using PHP Include to Separate Site Content
Asynchronous Http Requests in PHP
How to Remove an HTML Element Using the Domdocument Class
Table Name as Parameter Using Pdo/MySQL Prepared Statement