diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-09-16 17:47:22 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-09-16 17:47:22 +0200 |
commit | 7bff22c03d8d769cfed475f6e253c72b43f9b131 (patch) | |
tree | 668aa6c1346dea56aa6044a59f03ba1e65fc2932 /inc/common.php | |
parent | 8e0b019f895b3e742a353ac11ff1fe38d121de18 (diff) | |
download | rpg-7bff22c03d8d769cfed475f6e253c72b43f9b131.tar.gz rpg-7bff22c03d8d769cfed475f6e253c72b43f9b131.tar.bz2 |
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
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 4 |
1 files changed, 4 insertions, 0 deletions
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 .= '" '; |