aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1216.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-07-28 17:17:12 -0700
committerzotlabs <mike@macgirvin.com>2018-07-28 17:17:12 -0700
commit97015162282989913d6b54c373af3b73b8043bad (patch)
treefeadfe9a7ae175e9b92214be68b388d4bf0a2ab4 /Zotlabs/Update/_1216.php
parent2367d94a4264b228995e54ab6e1383652f82a2c2 (diff)
downloadvolse-hubzilla-97015162282989913d6b54c373af3b73b8043bad.tar.gz
volse-hubzilla-97015162282989913d6b54c373af3b73b8043bad.tar.bz2
volse-hubzilla-97015162282989913d6b54c373af3b73b8043bad.zip
fix unsanitised xchan_name
Diffstat (limited to 'Zotlabs/Update/_1216.php')
-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;
+ }
+ }
+
+}