jasonnauta / stikked

Automatically exported from code.google.com/p/stikked
Other
0 stars 0 forks source link

Default URI scheme errors out with: The URI you submitted has disallowed characters. #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using PHP 5.3.1 and following the install instructions everything works until 
you try and save a snippet for the first time and you get the error: "The URI 
you submitted has disallowed characters."

Following this page solved the problem but it should be addressed in a future 
version of how to get around it. 

http://davidmichaelthompson.com/2009/09/03/fixed-the-uri-you-submitted-has-disal
lowed-characters-error-codeigniter/

otherwise, install instructions worked perfectly! :)

Original issue reported on code.google.com by JimI...@gmail.com on 20 Oct 2010 at 6:28

GoogleCodeExporter commented 9 years ago
I ran into the same issue and I just removed the preg_quote altogether to 
resolve it.  I wonder if an update to CodeIgniter addresses this issue?  Thanks 
for the link, though.

Original comment by basilgo...@gmail.com on 19 Nov 2010 at 3:16

GoogleCodeExporter commented 9 years ago
I have the same error now, it was working fine... don't know why i get that 
error now...

Original comment by maxim...@gmail.com on 19 Apr 2012 at 9:25

GoogleCodeExporter commented 9 years ago
To fix the issue

vim system/config/config.php
in Stikked folder and
comment $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
by adding # infront of it as follows.
# $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

credit:
http://kasunc.blogspot.co.uk/2012/02/how-to-fix-stikked-uri-you-submitted.html

Original comment by Mohan...@gmail.com on 11 Mar 2013 at 1:38

GoogleCodeExporter commented 9 years ago
this happens mainly because you have a hyphen in your domain.
commenting and allowing is not ideal, rather making the following changes:

" (assuming codeigniter 1.7.x)

1) in codeigiter system/libraries open URI.php line 189 you’ll find

if ( ! 
preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i",
 rawurlencode($str)))

change this code by

if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", 
rawurlencode($str)))

2. Now another changes in your system/application/config/config.php file. Go to 
the line 126

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

change this code by

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

After changes the code, save the file and refresh your browser."

source: 
http://www.technologyrider.com/fixed-%E2%80%9Cthe-uri-you-submitted-has-disallow
ed-characters-%E2%80%9D-codeigniter-ci-error

Original comment by p.aub...@gmail.com on 8 Apr 2013 at 5:33

GoogleCodeExporter commented 9 years ago
THANK YOU

Original comment by gonguta....@gmail.com on 21 Jun 2014 at 5:49