From 76893b3b0c7671a84a8f1bfd06dd2f22ef5b7b0e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 16 Jan 2019 16:03:22 +0100 Subject: lib/mysql.php: mysql_url_encode() new to url-encode strings _inside_mysql_ --- lib/mysql.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/mysql.php b/lib/mysql.php index cd21eaa..33ab4f0 100644 --- a/lib/mysql.php +++ b/lib/mysql.php @@ -60,3 +60,8 @@ function show_warning_on_offline_slave() { print "
The replication slave is currently not running. The database might be outdated.
\n"; } } + +function mysql_url_encode($input) { + return + "REPLACE(" . $input . ",\"+\",\"%2B\")"; +} -- cgit v1.2.3-70-g09d2