Skip to content

Commit

Permalink
improved clean function
Browse files Browse the repository at this point in the history
  • Loading branch information
keverw committed Sep 24, 2012
1 parent 47969c1 commit e58f13f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PastaDB.php
@@ -1,7 +1,7 @@
<?php
/**
* @project PastaDB
* @version 0.5
* @version 0.6
* @url https://github.com/keverw/PastaDB
* @about A powerful yet simple database abstraction layer library
**/
Expand Down Expand Up @@ -80,7 +80,7 @@ public function clean($mixedValue)
$mixedValue = stripcslashes($mixedValue);
}

return addcslashes($this->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)
Expand Down
2 changes: 1 addition & 1 deletion 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.
Expand Down

0 comments on commit e58f13f

Please sign in to comment.