Ver código fonte

added html tags escaping

Malishev Dmitry 10 anos atrás
pai
commit
1689ea34a2
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      web/edit/file/index.php

+ 1 - 1
web/edit/file/index.php

@@ -74,7 +74,7 @@ if (($_SESSION['user'] == 'admin') && (!empty($_SESSION['look']))) {
 <input type="submit" name="save" value="Save" class="save" />
 
 
-<textarea name="contents" class="editor" id="editor" rows="4" style="display:none;width: 100%; height: 100%;"><?php echo $content ?></textarea>
+<textarea name="contents" class="editor" id="editor" rows="4" style="display:none;width: 100%; height: 100%;"><?=htmlentities($content)?></textarea>
 
 </form>