This fixes the problem that on some servers the PHP ctype extension
is not installed by default and results in a blank backend screen
when trying to edit a page.
Fixes: #43726
Releases: 6.1, 6.0
Change-Id: Icb029a39107c092c06c9e70bbde0b2217e5860f7
Reviewed-on: https://review.typo3.org/17773
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
if ($source === 'local' && !in_array($version, $this->availableLocalJqueryVersions)) {
throw new \UnexpectedValueException('The requested jQuery version is not available in the local filesystem.', 1341505305);
}
- if (!ctype_alnum($namespace)) {
+ if (!preg_match('/^[a-zA-Z0-9]+$/', $namespace)) {
throw new \UnexpectedValueException('The requested namespace contains non alphanumeric characters.', 1341571604);
}
$this->jQueryVersions[$namespace] = array(
}
/**
- * @expectedException UnexpectedValueException
+ * @expectedException \UnexpectedValueException
* @test
*/
public function includingNotAvailableLocalJqueryVersionThrowsException() {
}
/**
- * @expectedException UnexpectedValueException
+ * @expectedException \UnexpectedValueException
* @test
*/
public function includingJqueryWithNonAlphnumericNamespaceThrowsException() {