fix unsanitised xchan_name

(cherry picked from commit 9701516228)
This commit is contained in:
zotlabs 2018-07-29 00:17:12 +00:00 committed by Mario
parent 13386ddbd7
commit d2e0ecd6a3
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.6' );
define ( 'ZOT_REVISION', '6.0a' );
define ( 'DB_UPDATE_VERSION', 1215 );
define ( 'DB_UPDATE_VERSION', 1216 );
define ( 'PROJECT_BASE', __DIR__ );