Any way to allow certain URL characters only for a specifc controller? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Any way to allow certain URL characters only for a specifc controller? (/showthread.php?tid=60395) |
Any way to allow certain URL characters only for a specifc controller? - El Forum - 03-17-2014 [eluser]Dandy_andy[/eluser] Is there any way to change the allowed URL characters for a specific controller rather than change them globally? I am integrating a payment processor that needs to post certain characters in the URL to a specific controller but I don't want to compromise the security of the rest of the site. Any way to allow certain URL characters only for a specifc controller? - El Forum - 03-18-2014 [eluser]InsiteFX[/eluser] You could try this: Code: // set it for modified url. Any way to allow certain URL characters only for a specifc controller? - El Forum - 03-19-2014 [eluser]jonez[/eluser] Another alternative is to use a pre_system hook and change the config setting at run time based on the current URL. Code: $hook['pre_system'][] = array( Code: <?php |