Created
April 18, 2011 22:55
-
-
Save mfkp/926453 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: standardForm.php | |
=================================================================== | |
--- standardForm.php (revision 1) | |
+++ standardForm.php (working copy) | |
@@ -4,7 +4,7 @@ | |
<?php if (isset($_GET['chooser'])) { | |
echo '<input type="hidden" name="chooser" value="true" />'; | |
} ?> | |
- <input style="width:18ex;" type="text" value="<?php echo @$_GET['q']; ?>" id="q" name="q" /> | |
+ <input style="width:18ex;" type="text" value="<?php echo htmlspecialchars(@$_GET['q']); ?>" id="q" name="q" /> | |
<input style="margin-bottom:-7px;" name="submitbutton" type="image" src="/ucomm/templatedependents/templatecss/images/go.gif" value="Submit" id="submitbutton" /> | |
</div> | |
-</form> | |
\ No newline at end of file | |
+</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment