mirror of
https://github.com/smarty-php/smarty.git
synced 2025-07-31 16:37:14 +02:00
Cannot use in Smarty3 yet, revert to @expectedException
This commit is contained in:
@@ -435,9 +435,9 @@ class CompileFunctionTest extends PHPUnit_Smarty
|
||||
|
||||
/**
|
||||
* Test handling of function names that are a security risk
|
||||
* @expectedException SmartyCompilerException
|
||||
*/
|
||||
public function testIllegalFunctionName() {
|
||||
$this->expectException(SmartyCompilerException::class);
|
||||
$this->smarty->fetch('string:{function name=\'rce(){};echo "hi";function \'}{/function}');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user