]> git.p6c8.net - jirafeau/pcanterino.git/blobdiff - install.php
Check async ref files before opening.
[jirafeau/pcanterino.git] / install.php
index 2550aa615fb3247df811486290c6ad264eb455b3..808aad75d0e12a73fe7b4b6c3d236e62b8dd226a 100644 (file)
@@ -139,7 +139,7 @@ break;
         ?></label></td>
         <td class = "field"><input type = "text" name = "web_root"
         id = "input_web_root" value = "<?php
-               echo(empty($cfg['web_root']) ? jirafeau_default_web_root() : $cfg['web_root']);
+               echo htmlspecialchars(empty($cfg['web_root']) ? jirafeau_default_web_root() : $cfg['web_root'], ENT_QUOTES);
         ?>" size = "40" /></td>
         </tr> <tr> <td class = "info" colspan = "2"><?php
           echo t('DATA_DIR_EXPLAINATION');
@@ -153,12 +153,12 @@ break;
           'abcdefghijklmnopqrstuvwxyz' . '0123456789';
                 $len_alphanum = strlen($alphanum);
                 $var = 'var-';
-                for ($i = 0; $i <JIRAFEAU_VAR_RAND_LENGTH; $i++) {
+                for ($i = 0; $i < JIRAFEAU_VAR_RAND_LENGTH; $i++) {
                     $var .= substr($alphanum, mt_rand(0, $len_alphanum - 1), 1);
                 }
                 echo JIRAFEAU_ROOT . $var . '/';
             } else {
-                echo $cfg['var_root'];
+                echo htmlspecialchars($cfg['var_root'], ENT_QUOTES);
             }
         ?>" size = "40" /></td>
         </tr> <tr> <td colspan = "2"><input type = "submit"

patrick-canterino.de