Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin <robin@Amaya.(none)>2010-05-23 01:05:49 +0400
committerRobin <robin@Amaya.(none)>2010-05-23 01:05:49 +0400
commit7b08854f705ff56ac041ad8baaeec85e0e7189d0 (patch)
tree884a747b46efe0292d18231265a88145700c0c9d /inc/lib_base.php
parent6668793f4ac01a605e6cc8356f192a7f4e651e83 (diff)
use MDB2's escape instead of mysql_escape
Diffstat (limited to 'inc/lib_base.php')
-rwxr-xr-xinc/lib_base.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/inc/lib_base.php b/inc/lib_base.php
index e6c02722b49..506bca22108 100755
--- a/inc/lib_base.php
+++ b/inc/lib_base.php
@@ -474,14 +474,15 @@ class OC_DB {
}
}
- static public function createTable($name,$definition){
- self::connect();
- self::$DBConnection->createTable($name,$definition);
- }
-
- static public function createConstraint($table,$name,$definition){
- self::connect();
- self::$DBConnection->createConstraint($table,$name,$definition);
+ /**
+ * escape strings so they can be used in queries
+ *
+ * @param string string
+ * @return string
+ */
+ static function escape($string){
+ OC_DB::connect();
+ return self::$DBConnection->escape($string);
}
}