From 0b11151888647bbb9ab4f50f3440934528b2f35e Mon Sep 17 00:00:00 2001 From: icewing Date: Wed, 5 Mar 2008 17:42:35 +0000 Subject: Marcus Povey * Sanitise trims as well git-svn-id: https://code.elgg.org/elgg/trunk@82 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/database.php b/engine/lib/database.php index 06b6770a3..c28673b48 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -332,7 +332,7 @@ * @return string Sanitised string */ function sanitise_string($string) { - return mysql_real_escape_string($string); + return mysql_real_escape_string(trim($string)); } // Stuff for initialisation -- cgit v1.2.3