diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-18 12:50:22 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-05-18 12:50:22 +0200 |
| commit | 3ef8e663013183aea1e840d92a609c31abb5ca17 (patch) | |
| tree | ea0dd835d6a50cd4fb51c8a06de9be494ee4d678 /generated-classes | |
| parent | db7d9c0817a40ecaf6849c2e024d52ab6ed80324 (diff) | |
| download | Catalog-3ef8e663013183aea1e840d92a609c31abb5ca17.tar.gz Catalog-3ef8e663013183aea1e840d92a609c31abb5ca17.zip | |
Replace htmlentities to prevent XSS
Diffstat (limited to 'generated-classes')
| -rw-r--r-- | generated-classes/Category.php | 16 | ||||
| -rw-r--r-- | generated-classes/Product.php | 16 | ||||
| -rw-r--r-- | generated-classes/User.php | 24 |
3 files changed, 54 insertions, 2 deletions
diff --git a/generated-classes/Category.php b/generated-classes/Category.php index 041fe78..5e6be78 100644 --- a/generated-classes/Category.php +++ b/generated-classes/Category.php @@ -14,5 +14,19 @@ use Base\Category as BaseCategory; */ class Category extends BaseCategory { - + /* (non-PHPdoc) + * @see \Base\Category::getName() + */ + public function getName() + { + return htmlentities(parent::getName()); + } + + /* (non-PHPdoc) + * @see \Base\Category::getDescription() + */ + public function getDescription() + { + return htmlentities(parent::getDescription()); + } } 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()); + } } diff --git a/generated-classes/User.php b/generated-classes/User.php index 91d404f..b8ad000 100644 --- a/generated-classes/User.php +++ b/generated-classes/User.php @@ -43,6 +43,30 @@ class User extends BaseUser return self::createHash($v) === parent::getPassword(); } + /* (non-PHPdoc) + * @see \Base\User::getUsername() + */ + public function getUsername() + { + return htmlentities(parent::getUsername()); + } + + /* (non-PHPdoc) + * @see \Base\User::getPassword() + */ + public function getPassword() + { + return htmlentities(parent::getPassword()); + } + + /* (non-PHPdoc) + * @see \Base\User::getSalt() + */ + public function getSalt() + { + return htmlentities(parent::getSalt()); + } + /** * Create a password hash with sha-1 * |
