fix unsanitised xchan_name

This commit is contained in:
zotlabs
2018-07-28 17:17:12 -07:00
parent 2367d94a42
commit 9701516228
2 changed files with 20 additions and 1 deletions

19
Zotlabs/Update/_1216.php Normal file
View File

@@ -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;
}
}
}