aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/input/plaintext.php8
-rw-r--r--views/default/input/radio.php2
2 files changed, 5 insertions, 5 deletions
diff --git a/views/default/input/plaintext.php b/views/default/input/plaintext.php
index a0a8a3949..05018e1ed 100644
--- a/views/default/input/plaintext.php
+++ b/views/default/input/plaintext.php
@@ -7,13 +7,13 @@
* @subpackage Core
*
* @uses $vars['value'] The current value, if any
- * @uses $vars['js'] Any Javascript to enter into the input tag
* @uses $vars['internalname'] The name of the input field
- *
+ * @uses $vars['class']
+ * @uses $vars['disabled']
*/
$defaults = array(
- 'class' => 'elgg-input-textarea'
+ 'class' => 'elgg-input-textarea',
'disabled' => FALSE,
);
@@ -24,5 +24,5 @@ $attrs = array_merge($defaults, $vars);
?>
<textarea <?php echo elgg_format_attributes($attrs); ?>>
- <?php echo htmlentities($value, ENT_QUOTES, 'UTF-8'); ?>
+ <?php echo htmlspecialchars($value, ENT_QUOTES, 'UTF-8', false); ?>
</textarea>
diff --git a/views/default/input/radio.php b/views/default/input/radio.php
index 60a2d10a6..93db2f637 100644
--- a/views/default/input/radio.php
+++ b/views/default/input/radio.php
@@ -40,7 +40,7 @@ if ($options && count($options) > 0) {
echo "<ul class=\"$class\">";
foreach ($options as $label => $option) {
- $vars['checked'] = elgg_strtolower($option) != elgg_strtolower($vars['value']);
+ $vars['checked'] = elgg_strtolower($option) == elgg_strtolower($value);
$vars['value'] = $option;
$attributes = elgg_format_attributes($vars);