Single-quote in descr causes havoc w/ TC duplicate
Brought to you by:
romulusnr
If there is a single-quote in your test description, and you use Duplicate Case on it, it will cause an error.
This is because the single-quote in the descr is not being escaped, causing premature termination of the descr string.
Logged In: YES
user_id=579274
Originator: NO
The fix is in newcase.php, where we check for $_GET['model']. We must apply addslashes() to $tcinfo('descr') and $tcinfo('details'). We will need to do this for any future text field as well.
Logged In: YES
user_id=579274
Originator: NO
We must also do this in the forloop on the $ctcinfo array. Ugh.
Logged In: YES
user_id=579274
Originator: NO
Maybe getcase() should do this? Hmm, not by default, because sometimes it's used for page data. Maybe a special getcase(), or an opt arg?