Update worker.class.php

[UPDATE] Fix for issue #957
This commit is contained in:
Joey 2013-12-19 06:51:28 -05:00
parent fcebc8eb2b
commit d85ae9bd7c

View File

@ -236,7 +236,7 @@ class Worker extends Base {
$this->setErrorMessage($this->getErrorMsg('E0058'));
return false;
}
$validName = (bool) preg_match("/^[0-9a-zA-Z_\-]*$/", $wData[1]);
$validName = (bool) preg_match("/^[0-9a-zA-Z_\-]*$/", $workerName);
if ($validName === false) {
$this->setErrorMessage($this->getErrorMsg('E0072'));
return false;