summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-03-27 22:35:42 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-03-27 22:35:42 +1100
commit19187b6205b826e48f1bd2e61a5c24df879b9c6a (patch)
tree22982e5be75304e79faea7f23e2f5e8f362d72c2 /post.php
parent7c2938b542cfdc91b93cf549efe50804c7d1c181 (diff)
Fixed dangerous XSS vulnerability
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index 4dd8cc6e..18c97435 100644
--- a/post.php
+++ b/post.php
@@ -211,7 +211,7 @@
$post['mod'] = isset($_POST['mod']) && $_POST['mod'];
if($post['has_file'])
- $post['filename'] = get_magic_quotes_gpc() ? stripslashes($_FILES['file']['name']) : $_FILES['file']['name'];
+ $post['filename'] = utf8tohtml(get_magic_quotes_gpc() ? stripslashes($_FILES['file']['name']) : $_FILES['file']['name']);
if($config['force_body'] && empty($post['body']))
error($config['error']['tooshort_body']);