mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
Firewall/Alias, fix migration issue in case source description doesn't fit model definition.
This commit is contained in:
parent
fe803f8d57
commit
a4ab0d30ac
@ -55,7 +55,11 @@ class M1_0_0 extends BaseModelMigration
|
||||
$node = $model->aliases->alias->Add();
|
||||
}
|
||||
// set alias properties
|
||||
$node->description = (string)$alias->descr;
|
||||
$node->description = substr(preg_replace(
|
||||
"/[^\t\n\v\f\r 0-9a-zA-Z.\-,_\x{00A0}-\x{FFFF}]/u",
|
||||
" ",
|
||||
(string)$alias->descr
|
||||
), 0, 255);
|
||||
$node->name = (string)$alias->name;
|
||||
$node->type = (string)$alias->type;
|
||||
if (in_array((string)$alias->type, array('urltable_ports', 'url_ports'))) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user