summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-03-14 01:38:46 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-03-14 01:38:46 -0400
commit1f7afa9c700c8bb93c833a0024f9505be7763c4d (patch)
tree8982bf9031490c7926fc6ead58ef5c989ca2267a /doc
parentf60f1a279e82f27921726bbb7675dfeae7e551cd (diff)
downloadlighttpd-git-1f7afa9c700c8bb93c833a0024f9505be7763c4d.tar.gz
[doc] minor adjust create-mime.conf.pl regex match (#2942)
'-' in char class should be at beginning or end, or escaped with \- so that it does not signify a char range in the char class (In the prior regex, the misuse permitted matching the comma char, which while mostly harmless, was not what was intended) x-ref: "incorrect behaviour of create-mime.assign.pl" https://redmine.lighttpd.net/issues/2942
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/scripts/create-mime.conf.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/scripts/create-mime.conf.pl b/doc/scripts/create-mime.conf.pl
index 969292c7..29812838 100755
--- a/doc/scripts/create-mime.conf.pl
+++ b/doc/scripts/create-mime.conf.pl
@@ -130,7 +130,7 @@ while (<MIMETYPES>) {
chomp;
s/\#.*//;
next if /^\w*$/;
- if (/^([a-z0-9\/+-.]+)\s+((?:[a-z0-9.+-]+[ ]?)+)$/i) {
+ if (/^([a-z0-9\/+.-]+)\s+((?:[a-z0-9+.-]+[ ]?)+)$/i) {
my $mimetype = $1;
my @extensions = split / /, $2;