CodeIgniter Forums
Form POST submit with parentheses issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Form POST submit with parentheses issue (/showthread.php?tid=88149)



Form POST submit with parentheses issue - stevukas - 07-29-2023

Hello,
i am having a weird issue and couldn't find a solution everywhere.
So i have a simple Form with NAME and NOTES fields.
When i submit the form, it works fine, and then i add for example: (12) to the notes, it redirect me to 404
it always if i add parentheses to to any field, sometimes if i add only (12) it works, but if i add (12)(13) it throw a 404 error.
i tried to do AJAX with URI Encode and it still the same.
The weird issue only happening in Production Env, but in my local server, it works find
My Prod server hosted in CPANEL, so it could be server issue?
My Form Action: products/update/1
My route is :
PHP Code:
$routes->presenter('products', ['placeholder' => '(:num)''filter' => 'permissions:products.read']); 



RE: Form POST submit with parentheses issue - kenjis - 07-31-2023

"(12)" does not match "(:num)". So it results in 404.


RE: Form POST submit with parentheses issue - sheilaf - 08-01-2023

(07-29-2023, 07:50 AM)stevukas Wrote: Hello,
The weird issue only happening in Production Env, but in my local server, it works find
My Prod server hosted in CPANEL, so it could be server issue?
My Form Action: products/update/1
My route is :
PHP Code:
$routes->presenter('products', ['placeholder' => '(:num)''filter' => 'permissions:products.read']); 
Are you sure you have the same version of CodeIgniter on both servers? Also does one server see lowercase and uppercase filenames differently?