From 7bff22c03d8d769cfed475f6e253c72b43f9b131 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 16 Sep 2006 17:47:22 +0200 Subject: TPL_METAHEADER_PRINT event hook added This patch changes the tpl_metaheaders function to emit an event to intercept the creation of HTML metadata. The usually generated meta headers are passed in an array structure for easy modification and enhancement. darcs-hash:20060916154722-7ad00-b22ab79803d1abad4ca579b84b6a3fa466403619.gz --- inc/common.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'inc/common.php') diff --git a/inc/common.php b/inc/common.php index 9e366e3fd..5372a17d7 100644 --- a/inc/common.php +++ b/inc/common.php @@ -151,11 +151,15 @@ function buildURLparams($params, $sep='&'){ /** * Build an string of html tag attributes * + * Skips keys starting with '_', values get HTML encoded + * * @author Andreas Gohr */ function buildAttributes($params){ $url = ''; foreach($params as $key => $val){ + if($key{0} == '_') continue; + $url .= $key.'="'; $url .= htmlspecialchars ($val); $url .= '" '; -- cgit v1.2.3