summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2023-07-07 09:57:35 +0200
committerJoe Orton <jorton@apache.org>2023-07-07 09:57:35 +0200
commit21e6989f8df8a6c188f993dbe11f44b712a98c34 (patch)
treea0ad641426233a40107fe69c1fea306bc7daa346 /support
parentmod_rewrite: Fix a possible NULL pointer dereference in hook_uri2file (diff)
downloadapache2-21e6989f8df8a6c188f993dbe11f44b712a98c34.tar.xz
apache2-21e6989f8df8a6c188f993dbe11f44b712a98c34.zip
apxs: Fix -i for some cases where -n is not used.
The $base was already stripped of suffix in typical case. Submitted by: Jan Pazdziora <jpazdziora redhat.com> Github: closes #359 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910841 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r--support/apxs.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/apxs.in b/support/apxs.in
index 65e1288527..4a99062577 100644
--- a/support/apxs.in
+++ b/support/apxs.in
@@ -538,7 +538,7 @@ if ($opt_i or $opt_e) {
}
}
if ($name eq '') {
- if ($base =~ m|.*mod_([a-zA-Z0-9_]+)\..+|) {
+ if ($base =~ m/.*mod_([a-zA-Z0-9_]+)(\..+|$)/) {
$name = "$1";
$filename = $base;
$filename =~ s|^[^/]+/||;