pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Encode the generated HTML properly, taken from genr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a37f804816a4
branches: trunk
changeset: 531811:a37f804816a4
user: adrianp <adrianp%pkgsrc.org@localhost>
date: Mon Aug 06 19:28:17 2007 +0000
description:
Encode the generated HTML properly, taken from genreadme.awk
diffstat:
mk/bsd.pkg.readme.mk | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 097be5143da3 -r a37f804816a4 mk/bsd.pkg.readme.mk
--- a/mk/bsd.pkg.readme.mk Mon Aug 06 18:59:33 2007 +0000
+++ b/mk/bsd.pkg.readme.mk Mon Aug 06 19:28:17 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.readme.mk,v 1.10 2007/08/06 02:36:24 adrianp Exp $
+# $NetBSD: bsd.pkg.readme.mk,v 1.11 2007/08/06 19:28:17 adrianp Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and encapsulates the
# code to produce README.html files in each package directory.
@@ -253,9 +253,13 @@
_PKGVULNDIR=`audit-packages ${AUDIT_PACKAGES_FLAGS} -Q PKGVULNDIR`; \
if [ -f $$_PKGVULNDIR/pkg-vulnerabilities ]; then \
audit-packages ${AUDIT_PACKAGES_FLAGS} -n ${PKGNAME} 2>&1| ${AWK} \
- '{ gsub("\<", "\\<", $$2); \
+ '{ printurl = $$8; \
+ gsub("\<", "\\<", $$2); \
gsub("\>", "\\>", $$2); \
- printf("<LI><STRONG>%s has a %s exploit (see <a href=\"%s\">%s</a> for more details)</STRONG></LI>\n", $$2, $$5, $$8, $$8) }'; \
+ gsub("\<", "\\<", printurl); \
+ gsub("\>", "\\>", printurl); \
+ gsub("\&", "\\&", printurl); \
+ printf("<LI><STRONG>%s has a %s exploit (see <a href=\"%s\">%s</a> for more details)</STRONG></LI>\n", $$2, $$5, $$8, printurl) }'; \
fi; \
fi
Home |
Main Index |
Thread Index |
Old Index