diff --git a/framework/yii/base/ErrorHandler.php b/framework/yii/base/ErrorHandler.php index c801fd4..8dc3fce 100644 --- a/framework/yii/base/ErrorHandler.php +++ b/framework/yii/base/ErrorHandler.php @@ -153,7 +153,7 @@ class ErrorHandler extends Component // method/function call $self = $this; $html = preg_replace_callback('/^(.*)\(\)$/', function ($matches) use ($self) { - return '' . + return '' . $self->htmlEncode($matches[1]) . '()'; }, $code); }