diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-05 17:42:35 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-05 17:42:35 +0000 |
commit | 0b11151888647bbb9ab4f50f3440934528b2f35e (patch) | |
tree | 3df4398d12c817bd4b7855c70e9ff9d88e4dd94e /engine/lib/database.php | |
parent | 490013fdd8d91593b6162fa0292fc90003285b2d (diff) | |
download | elgg-0b11151888647bbb9ab4f50f3440934528b2f35e.tar.gz elgg-0b11151888647bbb9ab4f50f3440934528b2f35e.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Sanitise trims as well
git-svn-id: https://code.elgg.org/elgg/trunk@82 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/database.php')
-rw-r--r-- | engine/lib/database.php | 2 |
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
|