converter strip player codes
This commit is contained in:
parent
63032e355c
commit
7b4e4872f0
@ -144,7 +144,10 @@ class DatabaseConverter {
|
|||||||
|
|
||||||
//Loop through all the players
|
//Loop through all the players
|
||||||
while($row = $result->fetch_object()) {
|
while($row = $result->fetch_object()) {
|
||||||
$statement->bind_param('ssss', $row->Uid, $row->Name, $row->Author, $row->Environment);
|
//Strip links and dirty codes
|
||||||
|
$name = preg_replace('/(?<!\$)((?:\$\$)*)\$[hlp](?:\[.*?\])?(.*?)(?:\$[hlp]|(\$z)|$)/iu', '$1$2$3', $row->name);
|
||||||
|
$name = preg_replace('/(?<!\$)((?:\$\$)*)\$[ow<>]/iu', '$1', $name);
|
||||||
|
$statement->bind_param('ssss', $row->Uid, $name, $row->Author, $row->Environment);
|
||||||
$statement->execute();
|
$statement->execute();
|
||||||
if ($statement->error) {
|
if ($statement->error) {
|
||||||
trigger_error($statement->error);
|
trigger_error($statement->error);
|
||||||
|
Loading…
Reference in New Issue
Block a user