Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-16 16:03:22 +0100
committerErich Eckner <git@eckner.net>2019-01-16 16:03:22 +0100
commit76893b3b0c7671a84a8f1bfd06dd2f22ef5b7b0e (patch)
tree2c386bf188f378062a77b6aa9ce224f42da18476
parent46f099ed0c4742c09b8e9ee3c357d1a92fece5bd (diff)
lib/mysql.php: mysql_url_encode() new to url-encode strings _inside_mysql_
-rw-r--r--lib/mysql.php5
1 files changed, 5 insertions, 0 deletions
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 "<div><font color=\"ff0000\">The replication slave is currently not running. The database might be outdated.</font></div>\n";
}
}
+
+function mysql_url_encode($input) {
+ return
+ "REPLACE(" . $input . ",\"+\",\"%2B\")";
+}