CodeIgniter Forums
form_validation doesn't accept strings with http:// - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: form_validation doesn't accept strings with http:// (/showthread.php?tid=60960)



form_validation doesn't accept strings with http:// - El Forum - 08-12-2014

[eluser]Unknown[/eluser]
Hi I need help. My form_validation doesn't accept string containing http:// I have tested the form using www.mywebsite.com and it works, but as soon as I add http://mywebsite.com the form_validation->run always returns false.

One weird thing is that it does work on my localhost, but not on my webserver.

Any ideas?? Would really appreciate the help.




form_validation doesn't accept strings with http:// - El Forum - 08-15-2014

[eluser]srpurdy[/eluser]
This is actually most likely a mod_security issue and not a codeigniter issue.

You're likely running mod_security rules from atomic, and it's probably seeing the http:// as an RFI attack. If your not the manager of the server. I would contact your host provider about the issue. They may be either willing to disable the security rule causing the issue. or write a custom rule to allow the URI you are using.

You could also try setting the submit form as form_open_multipart see if that makes any difference.