diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-27 22:35:42 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-27 22:35:42 +1100 |
| commit | 19187b6205b826e48f1bd2e61a5c24df879b9c6a (patch) | |
| tree | 22982e5be75304e79faea7f23e2f5e8f362d72c2 /post.php | |
| parent | 7c2938b542cfdc91b93cf549efe50804c7d1c181 (diff) | |
Fixed dangerous XSS vulnerability
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']); |
