[evolvis-commits] r8651: HTML-ify special chars in select boxes↵?==?UTF-8?Q?
mirabilos at evolvis.org
mirabilos at evolvis.org
Thu Feb 24 16:48:08 CET 2011
Author: mirabilos
Date: 2011-02-24 16:48:06 +0100 (Thu, 24 Feb 2011)
New Revision: 8651
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge/www/include/html.php
Log:
HTML-ify special chars in select boxes
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/include/html.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/include/html.php 2011-02-24 15:48:05 UTC (rev 8650)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/include/html.php 2011-02-24 15:48:06 UTC (rev 8651)
@@ -181,7 +181,7 @@
$return .= ' selected="selection"';
}
}
- $return .= '>'.$vals[$i].'</option>';
+ $return .= '>'.htmlspecialchars($vals[$i]).'</option>';
}
$return .= '
</select>';
@@ -234,7 +234,7 @@
$checked_found=true;
$return .= ' selected="selected"';
}
- $return .= '>'.$texts[$i].'</option>';
+ $return .= '>'.htmlspecialchars($texts[$i]).'</option>';
}
}
//
More information about the evolvis-commits
mailing list