Suggestion for the protect_identifiers method - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Suggestion for the protect_identifiers method (/showthread.php?tid=15643) |
Suggestion for the protect_identifiers method - El Forum - 02-10-2009 [eluser]OverZealous[/eluser] The updated protect_identifiers excellently detects and stops processing anything inside parentheses - which is great for NOT protecting functions, etc. I recommend that this method get placed directly below the array check, to prevent any modification happening to items that don't need to be (or shouldn't be) protected. Code: ... This would pretty much resolve any remaining issues (for me) with protect_identifiers, because I could disable it by encapsulating items I do not want to be escaped in parentheses: Code: // note: just examples, not necessarily real-world usage... |