File: apache2.4-compat.patch

package info (click to toggle)
libembperl-perl 2.5.0-10%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,128 kB
  • sloc: ansic: 21,384; perl: 14,496; javascript: 4,280; cpp: 467; xml: 49; makefile: 33; sh: 24
file content (43 lines) | stat: -rw-r--r-- 1,383 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From bcce23a15de55a39478f83a7923d8a89f681cc19 Mon Sep 17 00:00:00 2001
From: Niko Tyni <ntyni@debian.org>
Date: Tue, 29 Jul 2014 14:34:35 +0300
Subject: [PATCH] Adapt to an Apache 2.4.10 + 2.4.40 error page change

The "Forbidden" error page was slightly changed by Apache commit

 https://github.com/apache/httpd/commit/4f8fc53c8f6df76a42ccc89275fcede766662f9e
 https://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/http/http_protocol.c?r1=1487127&r2=1610328

breaking the EmbperlObject/epobase.htm test. The fix works
with both the old and the new page format.

Some years and versions later:
Apache changed the output again (in 2.4.40):
 https://github.com/apache/httpd/commit/c0ce3a729218279a6b4b03aab7a71bb8ae9d6259

Update the patch to hopefully work with all versions.

Origin: vendor
Bug-Debian: https://bugs.debian.org/756382
 https://bugs.debian.org/941926
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2019-10-07

---
 test/cmp/epobase.htm | 1 +
 1 file changed, 1 insertion(+)

--- a/test/cmp/epobase.htm
+++ b/test/cmp/epobase.htm
@@ -3,8 +3,9 @@
 <TITLE>403 Forbidden</TITLE>
 </HEAD><BODY>
 <H1>Forbidden</H1>
-^.*?You don't have permission to access /embperl/EmbperlObject/epobase.htm
-^on this server
+^.*?You don't have permission to access (/embperl/EmbperlObject/epobase.htm|this resource)
+^-on this server
+^-</p>
 </BODY></HTML>