fsf changes, meant to be rebased on upstream
[squirrelmail.git] / templates / default / input.tpl
index b843053a450e09a29406e419dd595f2fac1402ce..bb6e92faaf9baafac14645db53f7a25c6614f8e0 100644 (file)
@@ -13,7 +13,7 @@
   *                    in double quotes as attribute values (optional;
   *                    may not be present)
   *
-  * @copyright © 1999-2009 The SquirrelMail Project Team
+  * @copyright 1999-2022 The SquirrelMail Project Team
   * @license http://opensource.org/licenses/gpl-license.php GNU Public License
   * @version $Id$
   * @package squirrelmail
@@ -28,7 +28,8 @@ extract($t);
 
 echo '<input type="' . $type . '"';
 foreach ($aAttribs as $key => $value) {
-    echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
+//TODO: see the FIXME tag on line 68 of functions/forms.php - the sm_encode_html_special_chars() below should be migrated to the template class
+    echo ' ' . $key . (is_null($value) ? '' : '="' . sm_encode_html_special_chars($value) . '"');
 }
 echo ' />';