aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 15:34:33 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 15:34:33 +0000
commitc05e56381cac6ed2c26d71df64f15b1ef9491066 (patch)
tree2c700074392ccde42713a79f2ea4d309f70cec6c
parentc0b2b602d445403cf541b6ec2ce24654c4650fde (diff)
downloadelgg-c05e56381cac6ed2c26d71df64f15b1ef9491066.tar.gz
elgg-c05e56381cac6ed2c26d71df64f15b1ef9491066.tar.bz2
fixing a few bugs introduced last night in the input views
git-svn-id: http://code.elgg.org/elgg/trunk@8158 36083f99-b078-4883-b0ff-0f9b5a30f544
-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);