Skip to content

Commit 1689ea3

Browse files
committed
added html tags escaping
1 parent d3a7c6f commit 1689ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/edit/file/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<input type="submit" name="save" value="Save" class="save" />
7575

7676

77-
<textarea name="contents" class="editor" id="editor" rows="4" style="display:none;width: 100%; height: 100%;"><?php echo $content ?></textarea>
77+
<textarea name="contents" class="editor" id="editor" rows="4" style="display:none;width: 100%; height: 100%;"><?=htmlentities($content)?></textarea>
7878

7979
</form>
8080

0 commit comments

Comments
 (0)