File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ require("./header.inc.phtml");
5353 <label for="title">Title:</label><br/>
5454 <input type="text" name="title" id="title" tabindex="1" required
5555 autofocus="autofocus" value="<?php echo
56- htmlspecialchars ($ this ->getContext ()->title , ENT_HTML5 , " UTF-8 " );
56+ filter_var ($ this ->getContext ()->title , FILTER_SANITIZE_STRING );
5757 ?> "/>
5858 </section>
5959 <section>
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ require("./header.inc.phtml");
5858 <label for="title">Title:</label><br/>
5959 <input type="text" name="title" id="title" tabindex="1" required
6060 autofocus="autofocus" value="<?php echo
61- htmlspecialchars ($ this ->getContext ()->title , ENT_HTML5 , " UTF-8 " );
61+ filter_var ($ this ->getContext ()->title , FILTER_SANITIZE_STRING );
6262 ?> "/>
6363 </section>
6464 <section>
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ require("./header.inc.phtml");
6363 <label for="title">Title:</label><br/>
6464 <input type="text" name="title" id="title" tabindex="2" required
6565 value="<?php echo
66- htmlspecialchars ($ this ->getContext ()->title , ENT_HTML5 , " UTF-8 " );
66+ filter_var ($ this ->getContext ()->title , FILTER_SANITIZE_STRING );
6767 ?> "/>
6868 </section>
6969 <section>
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ require("./header.inc.phtml");
6868 <label for="title">Title:</label><br/>
6969 <input type="text" name="title" id="title" tabindex="2" required
7070 value="<?php echo
71- htmlspecialchars ($ this ->getContext ()->title , ENT_HTML5 , " UTF-8 " );
71+ filter_var ($ this ->getContext ()->title , FILTER_SANITIZE_STRING );
7272 ?> "/>
7373 </section>
7474 <section>
You can’t perform that action at this time.
0 commit comments