Skip to content
Snippets Groups Projects
Commit bdcbdaf2 authored by bx khateri's avatar bx khateri
Browse files

html special

parent 483c92a3
No related branches found
No related tags found
No related merge requests found
......@@ -24,14 +24,14 @@ $post_url_image = null;
if (isset($_POST['post_title'])) {
$post_title = $_POST['post_title'];
$post_title = htmlspecialchars($_POST['post_title']);
}
if ($post_title == null) {
$errors = 'post title must be present';
}
if (isset($_POST['post_body'])) {
$post_body = $_POST['post_body'];
$post_body = htmlspecialchars($_POST['post_body']);
}
if ($post_body == null) {
$errors = 'post body must be present';
......@@ -49,7 +49,7 @@ if (isset($postImageName)) {
}
if (isset($_POST['post_url_image'])) {
$post_url_image = $_POST['post_url_image'];
$post_url_image = htmlspecialchars($_POST['post_url_image']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment