]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Changed $tag to $element in html5 input/default which was causing inputs to not be...
authorEvan Winslow <evan.b.winslow@gmail.com>
Wed, 7 Jul 2010 00:18:13 +0000 (00:18 +0000)
committerEvan Winslow <evan.b.winslow@gmail.com>
Wed, 7 Jul 2010 00:18:13 +0000 (00:18 +0000)
views/default/input/default.php

index 59ad357e78e75e712049f8a8413dc05c2a49bf8d..050e3b765667b3c240edce7390c6609488d9f6ea 100644 (file)
@@ -50,9 +50,6 @@ $defaults = array(
 \r
 $attributes = array_merge($defaults, $vars);\r
 \r
-$attributes['value'] = htmlspecialchars($attributes['value'], ENT_QUOTES, 'UTF-8');\r
-\r
-\r
 //Build the input\r
 $element = array();\r
 \r
@@ -61,11 +58,10 @@ foreach ($attributes as $attr => $val) {
        if ($val === TRUE) {\r
                $element[] = $attr;\r
        } elseif ($val !== FALSE) {\r
-               $val = addslashes($val);\r
                $element[] = "$attr=\"$val\"";\r
        }\r
 }\r
 $element[] = $js;\r
 $element[] = "/>";\r
 \r
-echo implode(" ", $tag);
\ No newline at end of file
+echo implode(" ", $element);
\ No newline at end of file