From: Robert A. V. II <php...@bo...> - 2002-10-02 05:32:54
|
Found a bug in the CVS version (downloaded it today, so yes, it's current) I tried adding a dropdown-box question with one of the possible answers being: 7. I don't know. It came back with a backslash in front of the quote-mark. Every edit thereafter, two backslashes were added. Fortunately, the fix is a one-line patch. Apologies if your mail software wraps the long lines. diff -ur phpESP/admin/include/tab/questions_options.inc phpESP-patched/admin/include/tab/questions_options.inc --- phpESP/admin/include/tab/questions_options.inc 2002-09-06 14:39:02.000000000 -0400 +++ phpESP-patched/admin/include/tab/questions_options.inc 2002-10-02 01:25:52.000000000 -0400 @@ -54,7 +54,7 @@ <input type="hidden" name="choice_id_<?php echo($i); ?>" value="<?php echo($choice_id); ?>"> <input type="text" size="60" name="choice_content_<?php echo($i); ?>" - value="<?php echo(htmlspecialchars($choice_content)); ?>"> + value="<?php echo(htmlspecialchars(DESLASH($choice_content))); ?>"> </td> </tr> <?php } ?> -- Robert August Vincent, II (pronounced "bob" or "bob-vee") bo...@pi..., geek@large, com...@bo... |