Skip to content

Commit

Permalink
Multiple Views support
Browse files Browse the repository at this point in the history
plesk#32 - Multiple Views support - add semicolon to check function
  • Loading branch information
futureweb authored Dec 6, 2018
1 parent 503b55b commit 3f49129
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plib/library/Form/Add.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function init()
'value' => '',
'required' => false,
'validators' => array(
array('Callback', true, array(array($this, 'isValidAlnumDashUnderscore'))),
array('Callback', true, array(array($this, 'isValidAlnumDashUnderscoreSemicol'))),
),
));

Expand Down Expand Up @@ -89,9 +89,9 @@ public function isValidSecret($data)
throw new pm_Exception($this->lmsg('invalidSecret'));
}

public function isValidAlnumDashUnderscore($data)
public function isValidAlnumDashUnderscoreSemicol($data)
{
if (preg_match('/^[a-zA-Z0-9_-]+$/', $data)) {
if (preg_match('/^[;a-zA-Z0-9_-]+$/', $data)) {
return true;
}
throw new pm_Exception($this->lmsg('invalidAlnumDashUnderscore'));
Expand Down

0 comments on commit 3f49129

Please sign in to comment.