From 29c8e42a09b15a3e0fb97ecaf85db0d360396490 Mon Sep 17 00:00:00 2001 From: Sergey Tsalkov Date: Mon, 27 Oct 2014 01:25:31 +0000 Subject: [PATCH] escape and sanitize could be occasionally useful as public functions --- db.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.class.php b/db.class.php index a7132c6..c49ee19 100644 --- a/db.class.php +++ b/db.class.php @@ -510,7 +510,7 @@ class MeekroDB { public function escape($str) { return "'" . $this->get()->real_escape_string(strval($str)) . "'"; } - protected function sanitize($value, $type='basic', $hashjoin=', ') { + public function sanitize($value, $type='basic', $hashjoin=', ') { if ($type == 'basic') { if (is_object($value)) { if ($value instanceof MeekroDBEval) return $value->text;