aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_subcats.inc.php
diff options
context:
space:
mode:
authorchrisaga <chrisaga@piwigo.org>2006-04-22 15:27:13 +0000
committerchrisaga <chrisaga@piwigo.org>2006-04-22 15:27:13 +0000
commit854df586db9c1936cf3914073cce357e4df43159 (patch)
tree276a37c94cc13ebbd2b7f31b6cdd949314c1777f /include/category_subcats.inc.php
parente49879d4b87693d2c3dec1147bdfd9fcb480ab1b (diff)
- merge trunk r1258:1259 into branch 1.6 (htmlentities())
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1260 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/category_subcats.inc.php')
-rw-r--r--include/category_subcats.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/category_subcats.inc.php b/include/category_subcats.inc.php
index 1fc6b2ac4..7c2f2bac0 100644
--- a/include/category_subcats.inc.php
+++ b/include/category_subcats.inc.php
@@ -149,7 +149,7 @@ SELECT id, path, tn_ext
'categories.category',
array(
'SRC' => $thumbnail_src_of[ $category['picture'] ],
- 'ALT' => $category['name'],
+ 'ALT' => htmlentities($category['name'],ENT_QUOTES),
'TITLE' => $lang['hint_category'],
'ICON' => get_icon(@$category['date_last']),
@@ -159,9 +159,9 @@ SELECT id, path, tn_ext
'cat_name' => $category['name'],
)
),
- 'NAME' => $category['name'],
+ 'NAME' => htmlentities($category['name'],ENT_QUOTES),
'CAPTION_NB_IMAGES' => (($category['nb_images'] == 0) ? '' : sprintf("%d ".l10n('pictures'), $category['nb_images'])),
- 'DESCRIPTION' => @$category['comment'],
+ 'DESCRIPTION' => htmlentities(@$category['comment'],ENT_QUOTES),
)
);
}
@@ -212,4 +212,4 @@ SELECT id, path, tn_ext
}
}
}
-?> \ No newline at end of file
+?>