From 51dd620bf958dc79dd5947f7cd642f3693799f4b Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 9 May 2010 21:59:47 +0000 Subject: Remember Bobby Tables: Sanitize your SQL inputs. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6841 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/PhpBB3.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/PhpBB3.php b/src/PhpBB3.php index 6fd785f..72700ce 100644 --- a/src/PhpBB3.php +++ b/src/PhpBB3.php @@ -265,9 +265,9 @@ class PhpBB3 { ') VALUES (' . $userId . ', ' . '1, ' . - $realFilename . ', ' . - $comment . ', ' . - $mimetype . ', ' . + $db->sql_escape($realFilename) . ', ' . + $db->sql_escape($comment) . ', ' . + $db->sql_escape($mimetype) . ', ' . strlen($data) . ', ' . time() . ')'; -- cgit v1.2.3