From 09c0099a970737e7a1a352a05b28253baf5b7928 Mon Sep 17 00:00:00 2001
From: llaffont <llaffont@git-test.afi-sa.fr>
Date: Wed, 27 Mar 2013 15:38:11 +0000
Subject: [PATCH] Correction validation HTML5

---
 library/ZendAfi/View/Helper/ComboCategories.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/ZendAfi/View/Helper/ComboCategories.php b/library/ZendAfi/View/Helper/ComboCategories.php
index daa19269a76..e94e8fc9021 100644
--- a/library/ZendAfi/View/Helper/ComboCategories.php
+++ b/library/ZendAfi/View/Helper/ComboCategories.php
@@ -51,7 +51,7 @@ class ZendAfi_View_Helper_ComboCategories extends ZendAfi_View_Helper_BaseHelper
 	 * @return string
 	 */
 	protected function _getCategorySelectGroupForBib($bib, $category) {
-		$html = sprintf('<optgroup label="%s">', $bib->getLibelle());
+		$html = sprintf('<optgroup label="%s">', htmlentities($bib->getLibelle()));
 		$rootCategories = isset($category) ? $category->getBibRootCategories($bib) : [];
 		foreach ($rootCategories as $rootCategory) {
 			$html .= $this->_getLeveledCategoryOption($rootCategory, $category);
-- 
GitLab