public function PharMetaDataInterceptor::assert in Drupal 7
Determines whether the according Phar archive contains (potential insecure) serialized objects.
Parameters
string $path:
string $command:
Return value
bool
Throws
Overrides Assertable::assert
File
- misc/
typo3/ phar-stream-wrapper/ src/ Interceptor/ PharMetaDataInterceptor.php, line 35
Class
- PharMetaDataInterceptor
- @internal Experimental implementation of checking against serialized objects in Phar meta-data @internal This functionality has not been 100% pentested...
Namespace
TYPO3\PharStreamWrapper\InterceptorCode
public function assert($path, $command) {
if ($this
->baseFileDoesNotHaveMetaDataIssues($path)) {
return true;
}
throw new Exception(sprintf('Problematic meta-data in "%s"', $path), 1539632368);
}