diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-10 14:32:34 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-10 14:32:34 +0000 |
commit | 7c884b14bd0d1a9d7bebe314e27ebd74ec0726ee (patch) | |
tree | cd8dbe67446cfa1988714782da642be60155e9a1 /views/default/input/access.php | |
parent | 65001decf7a36cffd077575229b4dd9239a48315 (diff) | |
download | elgg-7c884b14bd0d1a9d7bebe314e27ebd74ec0726ee.tar.gz elgg-7c884b14bd0d1a9d7bebe314e27ebd74ec0726ee.tar.bz2 |
Refs #756: htmlentities on all input views
git-svn-id: https://code.elgg.org/elgg/trunk@2704 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input/access.php')
-rw-r--r-- | views/default/input/access.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/input/access.php b/views/default/input/access.php index 9cd1e3d99..db938111e 100644 --- a/views/default/input/access.php +++ b/views/default/input/access.php @@ -35,9 +35,9 @@ foreach($vars['options'] as $key => $option) {
if ($key != $vars['value']) {
- echo "<option value=\"{$key}\">{$option}</option>";
+ echo "<option value=\"{$key}\">". htmlentities($option, null, 'UTF-8') ."</option>";
} else {
- echo "<option value=\"{$key}\" selected=\"selected\">{$option}</option>";
+ echo "<option value=\"{$key}\" selected=\"selected\">". htmlentities($option, null, 'UTF-8') ."</option>";
}
}
|