Browse files

Fix input fields that are unable to have an apostrophe.

Print the HTML escaped version of the value when printing an input box.

fixes #33.
  • Loading branch information...
1 parent f91b2b8 commit 410423ed8dd1c43c9d09994de2128bf501affdd1 @shane-tomlinson committed Jul 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 browserid.php
View
2 browserid.php
@@ -876,7 +876,7 @@ function Print_option_text_input($options, $id) {
type='text' size='50' value='%s' />",
$id,
$id,
- $options[$id]);
+ htmlspecialchars($options[$id], ENT_QUOTES));
}

0 comments on commit 410423e

Please sign in to comment.