aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/database.php2
1 files changed, 1 insertions, 1 deletions
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