modxcms/revolution — pull request #11275 by thomasd (2014-04-11 15:59:30+00:00)
Title: Bugfix in package name validation code on local upload

According to the docs (http://php.net/preg_match) preg_match() only returns a boolean false, when an error occurs, but not for valid searches without a result.
This change covers both cases.