From e58f13f4911e7406aa2ee5ddac48a42da2d4ea5e Mon Sep 17 00:00:00 2001 From: Kevin Whitman Date: Sun, 23 Sep 2012 23:42:08 -0400 Subject: [PATCH] improved clean function --- PastaDB.php | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PastaDB.php b/PastaDB.php index 06233ef..1185004 100644 --- a/PastaDB.php +++ b/PastaDB.php @@ -1,7 +1,7 @@ DBH->real_escape_string($mixedValue), '%_'); //escapes using real_escape_string, then escapes _ (underscore) and % (percent) signs + return addcslashes($this->DBH->real_escape_string($mixedValue), '%'); //escapes using real_escape_string, then escape % (percent) signs } public function query($string) diff --git a/README.md b/README.md index 96f395b..5b861e5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -PastaDB 0.5 +PastaDB 0.6 ======= Work with pasta, then we'll make the spaghetti! PastaDB aims to be a powerful yet simple database abstraction layer library.