From 7f7f0a158a583b3ef8a52fc5f1eeab8a500fe581 Mon Sep 17 00:00:00 2001 From: ozh Date: Thu, 2 May 2013 22:40:29 +0200 Subject: [PATCH] Fix the escape fix that didn't fix the escape --- includes/functions-formatting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/functions-formatting.php b/includes/functions-formatting.php index 54dfb19..c04e50e 100644 --- a/includes/functions-formatting.php +++ b/includes/functions-formatting.php @@ -135,7 +135,8 @@ function yourls_intval( $in ) { * */ function yourls_escape( $in ) { - return mysql_real_escape_string( $in ); + global $ydb; + return $ydb->escape( $in ); } /** -- 2.45.0