summaryrefslogtreecommitdiff
path: root/dh_installdocs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2007-12-22 21:03:21 -0500
committerJoey Hess <joey@kitenet.net>2007-12-22 21:03:21 -0500
commited94a7f07c230ad18f01a69f17c81829a57be309 (patch)
tree48998800b6b7c808c5bee62b9b664c6fb71cb776 /dh_installdocs
parent98188af0f226355ecaff2c67d80bea055bdd59a9 (diff)
* dh_installdocs: Tighten doc-base document id parsing to only accept
the characters that the doc-base manual allows in the id. Closes: #445541
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-xdh_installdocs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_installdocs b/dh_installdocs
index 61b6599..956a7fb 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -205,7 +205,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
# Parse the file to get the doc id.
open (IN, "debian/$fn") || die "Cannot read debian/$fn.";
while (<IN>) {
- if (/^Document:\s+(.*)(\s+)?/) {
+ if (/^Document:\s+([-+.a-z0-9]+)/) {
$doc_ids{$fn}=$1;
last;
}