summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-15 14:23:41 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-15 14:23:41 +0200
commite446ad337945b7839b73f13531b21ed16ece241e (patch)
treed4f9ada8aea117bed1230e767a8104aeabe2bb64 /system/libraries/Form_validation.php
parent1922a885b40ef63cf0a5141eb8377d04e3bee172 (diff)
Optimize encode_php_tags()
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r--system/libraries/Form_validation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 6d4446d0c..fb1c69caf 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1382,7 +1382,7 @@ class CI_Form_validation {
*/
public function encode_php_tags($str)
{
- return str_replace(array('<?php', '<?PHP', '<?', '?>'), array('&lt;?php', '&lt;?PHP', '&lt;?', '?&gt;'), $str);
+ return str_replace(array('<?', '?>'), array('&lt;?', '?&gt;'), $str);
}
// --------------------------------------------------------------------