Welcome Guest, Not a member yet? Register   Sign In
CI 1.7svn less-than (<) is passing through set_value on Form_validation
#2

[eluser]beemr[/eluser]
Still not exactly sure what was changed between SVN's, but I needed a down-and-dirty fix so:

In set_value() in Form_validation, have the function return a regex:
Code:
return preg_replace("/</", "&amp;lt;", $this->_field_data[$field]['postdata']);

Apparently, CI 1.7svn needs to double escape the "less-than"


Messages In This Thread
CI 1.7svn less-than (<) is passing through set_value on Form_validation - by El Forum - 10-10-2008, 03:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB