Input cleanup

git-svn-id: https://develop.svn.wordpress.org/trunk@1743 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-10-05 06:59:13 +00:00
parent 075ea09876
commit 31ea9c565d
5 changed files with 9 additions and 30 deletions

View File

@@ -1,8 +1,4 @@
<?php
/* <Bookmarklet> */
// accepts 'post_title' and 'content' as vars passed in. Add-on from Alex King
$mode = 'bookmarklet';
$standalone = 1;
@@ -23,12 +19,11 @@ window.close()
</script>
</head>
<body></body>
</html><?php
</html>
<?php
} else {
$popuptitle = stripslashes($popuptitle);
$text = stripslashes(urldecode($text));
$popuptitle = htmlspecialchars(stripslashes($popuptitle));
$text = htmlspecialchars(stripslashes(urldecode($text)));
/* big funky fixes for browsers' javascript bugs */
@@ -57,7 +52,7 @@ window.close()
// and that is what is being included below. For this reason, I am just duplicating
// the var instead of changing the assignment on the lines above.
// -- Alex King 2004-01-07
$edited_post_title = $post_title;
$edited_post_title = htmlspecialchars($post_title);
// $post_pingback needs to be set in any file that includes edit-form.php
$post_pingback = get_settings('default_pingback_flag');