mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-28 20:45:00 +03:00
Fixes #567 Нельзя редактировать/создать блог в УРЛ которого дефис
This commit is contained in:
parent
3836e8f768
commit
760bd0ed3e
|
@ -19,7 +19,7 @@
|
|||
{* URL блога *}
|
||||
{include 'components/field/field.text.tpl'
|
||||
name = 'blog_url'
|
||||
rules = [ 'required' => true, 'type' => 'alphanum', 'rangelength' => '[2,50]' ]
|
||||
rules = [ 'required' => true, 'regexp' => '^[\w- ]{2,50}$' ]
|
||||
isDisabled = $_aRequest.blog_id && ! $oUserCurrent->isAdministrator()
|
||||
note = $aLang.blog.add.fields.url.note
|
||||
label = $aLang.blog.add.fields.url.label}
|
||||
|
|
Loading…
Reference in a new issue