[evolvis-commits] r11107: KikoV: input sanitizier of $rows, $cols and $wrap↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 18:02:38 CET 2011


Author: mirabilos
Date: 2011-02-24 18:02:38 +0100 (Thu, 24 Feb 2011)
New Revision: 11107

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/www/notepad.php
Log:
KikoV: input sanitizier of $rows, $cols and $wrap


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/notepad.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/notepad.php	2011-02-24 17:02:37 UTC (rev 11106)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/notepad.php	2011-02-24 17:02:38 UTC (rev 11107)
@@ -38,12 +38,12 @@
  */
 
 if ($wrap == '') {
-        $wrap = "SOFT";
+        $wrap = htmlspecialchars("SOFT");
 }
-if ($rows == '') {
+if (!is_int($rows)) {
         $rows = 30;
 }
-if ($cols == '') {
+if (!is_int($cols)) {
         $cols = 75;
 }
 $pform = '';



More information about the evolvis-commits mailing list