[lintian] 02/02: r/templates/tag: Extend scope of $q_tag
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 0f3005e3fef081a721641b323e2ce29f3898762c
Author: Niels Thykier <niels@thykier.net>
Date: Sun Mar 29 09:48:27 2015 +0200
r/templates/tag: Extend scope of $q_tag
Signed-off-by: Niels Thykier <niels@thykier.net>
---
reporting/templates/tag.tmpl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/reporting/templates/tag.tmpl b/reporting/templates/tag.tmpl
index aa23ce4..cb1f9df 100644
--- a/reporting/templates/tag.tmpl
+++ b/reporting/templates/tag.tmpl
@@ -1,4 +1,5 @@
-{ my $q_tag = html_quote($tag);
+{ # No my/our in front of $q_tag or it will leave scope too soon!
+ $q_tag = html_quote($tag);
head("Lintian Tag: ${q_tag}") }
<h1><span class="type-{$code}">{$code}</span> {${q_tag}}</h1>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: