aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-07-29 00:17:12 +0000
committerMario <mario@mariovavti.com>2018-07-29 07:05:07 +0200
commitd2e0ecd6a34daa3be069ed064092cc5517c0d279 (patch)
tree8505f4181d3c1262e468dee4c77c9db3f2130d4d /Zotlabs/Update
parent13386ddbd79d3d48ea16a8bb8b6fd48e20fb3463 (diff)
downloadvolse-hubzilla-d2e0ecd6a34daa3be069ed064092cc5517c0d279.tar.gz
volse-hubzilla-d2e0ecd6a34daa3be069ed064092cc5517c0d279.tar.bz2
volse-hubzilla-d2e0ecd6a34daa3be069ed064092cc5517c0d279.zip
fix unsanitised xchan_name
(cherry picked from commit 97015162282989913d6b54c373af3b73b8043bad)
Diffstat (limited to 'Zotlabs/Update')
-rw-r--r--Zotlabs/Update/_1216.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1216.php b/Zotlabs/Update/_1216.php
new file mode 100644
index 000000000..843567633
--- /dev/null
+++ b/Zotlabs/Update/_1216.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1215 {
+
+ function run() {
+
+ $r = q("UPDATE xchan set xchan_name = 'unknown' where xchan_name like '%<%' ");
+
+ if($r) {
+ return UPDATE_SUCCESS;
+ }
+ else {
+ return UPDATE_FAILED;
+ }
+ }
+
+}