Can use - and _ into website alias
This commit is contained in:
parent
336400d9ea
commit
7eee529c9f
@ -174,10 +174,11 @@ if ($action == 'add')
|
|||||||
$error++;
|
$error++;
|
||||||
$action='create';
|
$action='create';
|
||||||
}
|
}
|
||||||
else if (! preg_match('/^[a-z0-9]+$/i', $objectpage->pageurl))
|
else if (! preg_match('/^[a-z0-9\-\_]+$/i', $objectpage->pageurl))
|
||||||
{
|
{
|
||||||
$error++;
|
|
||||||
setEventMessages($langs->transnoentities("ErrorFieldCanNotContainSpecialCharacters", $langs->transnoentities('WEBSITE_PAGENAME')), null, 'errors');
|
setEventMessages($langs->transnoentities("ErrorFieldCanNotContainSpecialCharacters", $langs->transnoentities('WEBSITE_PAGENAME')), null, 'errors');
|
||||||
|
$error++;
|
||||||
|
$action='create';
|
||||||
}
|
}
|
||||||
if (empty($objectpage->title))
|
if (empty($objectpage->title))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user