Permalink
Browse files

Added escapeSqlString method to Database class

  • Loading branch information...
1 parent 75dad6e commit 680a85a4d9a41b222c3ca7e36a58f1d8cdccfbb8 @obokaman-com obokaman-com committed May 23, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 libs/SEOframework/Database.php
@@ -138,6 +138,19 @@ private function _lazyLoadAdodbConnection()
}
}
+ /**
+ * Return properly escaped string to be passed to SQL query.
+ *
+ * @param string $string
+ * @return string
+ */
+ public function escapeSqlString( $string )
+ {
+ $this->_lazyLoadAdodbConnection();
+
+ return self::$adodb[self::$destination_type]->qstr( $string );
+ }
+
public function __call($method, $args)//call adodb methods
{
// Method provides a valid comment to associate to this query:

0 comments on commit 680a85a

Please sign in to comment.