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

View File

@ -54,7 +54,7 @@ define ( 'STD_VERSION', '3.7' );
define ( 'ZOT_REVISION', '6.0a' );
define ( 'DB_UPDATE_VERSION', 1215 );
define ( 'DB_UPDATE_VERSION', 1216 );
define ( 'PROJECT_BASE', __DIR__ );