From 3ef8e663013183aea1e840d92a609c31abb5ca17 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 18 May 2015 12:50:22 +0200 Subject: Replace htmlentities to prevent XSS --- generated-classes/Product.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'generated-classes/Product.php') diff --git a/generated-classes/Product.php b/generated-classes/Product.php index afa6b7d..5c23acc 100644 --- a/generated-classes/Product.php +++ b/generated-classes/Product.php @@ -14,5 +14,19 @@ use Base\Product as BaseProduct; */ class Product extends BaseProduct { - + /* (non-PHPdoc) + * @see \Base\Product::getName() + */ + public function getName() + { + return htmlentities(parent::getName()); + } + + /* (non-PHPdoc) + * @see \Base\Product::getDescription() + */ + public function getDescription() + { + return htmlentities(parent::getDescription()); + } } -- cgit v1.2.3-70-g09d2