Welcome Guest, Not a member yet? Register   Sign In
set_value() apostrophe problem with add/edit form
#11

[eluser]Future Webs[/eluser]
This little test describes exactly what was going wrong

Code:
<?php
function html_escape($var)
{
  return is_array($var)
   ? array_map('html_escape', $var)
   : htmlspecialchars($var, ENT_QUOTES);
}


$thisvar1 = "here's this & that";
$thisvar2 = html_escape($thisvar1);
$thisvar3 = html_escape($thisvar2);

echo "normal - " . $thisvar1 . "<br/>" ;
echo "once - " . $thisvar2 . "<br/>" ;
echo "twice - " . $thisvar3 . "<br/>" ;
?&gt;
#12

[eluser]CroNiX[/eluser]
Ah, so you're not using a stable/released version, which by definition has bugs, undocumented features, potential security holes, etc. You can probably expect more anomalies then I'd assume. CI3 (current develop branch) is NOT production ready or they would have released it. Use at your own risk... I don't think anyone would recommend to use CI3 in a production environment.
#13

[eluser]Future Webs[/eluser]
InSiteFX , thanks man, that fixed it.

I really appreciate you giving a bit of time to help out

CroNiX, Yes, but there are a number of improvements in the develop version that are not yet in 2.1.3 and aside from the occasional problem as see here its been fine so far




Theme © iAndrew 2016 - Forum software by © MyBB