diff options
-rw-r--r-- | NEWS | 6 | ||||
m--------- | acvmod | 0 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | doc/vmod-dbrw.3 | 8 | ||||
-rw-r--r-- | src/vmod_dbrw.c | 6 |
5 files changed, 17 insertions, 9 deletions
@@ -1,8 +1,12 @@ | |||
1 | vmod-dbrw -- history of user-visible changes. 2020-04-09 | 1 | vmod-dbrw -- history of user-visible changes. 2022-08-21 |
2 | See the end of file for copying conditions. | 2 | See the end of file for copying conditions. |
3 | 3 | ||
4 | Please send vmod-dbrw bug reports to <gray@gnu.org> | 4 | Please send vmod-dbrw bug reports to <gray@gnu.org> |
5 | 5 | ||
6 | Version 2.8, 2022-08-21 | ||
7 | |||
8 | * Support for Varnish 7.1 | ||
9 | |||
6 | Version 2.7, 2020-04-09 | 10 | Version 2.7, 2020-04-09 |
7 | 11 | ||
8 | * Drop support for Varnish versions prior to 6.0 | 12 | * Drop support for Varnish versions prior to 6.0 |
diff --git a/acvmod b/acvmod | |||
Subproject 99b8dd21c7d1a91021b0a63c0d846ac35c4b009 | Subproject 0516e2461e8f2e3b33a7fffa13705cdb1de77c5 | ||
diff --git a/configure.ac b/configure.ac index 944d934..470d09b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,5 +1,5 @@ | |||
1 | # This file is part of vmod-dbrw -*- autoconf -*- | 1 | # This file is part of vmod-dbrw -*- autoconf -*- |
2 | # Copyright (C) 2013-2020 Sergey Poznyakoff | 2 | # Copyright (C) 2013-2022 Sergey Poznyakoff |
3 | # | 3 | # |
4 | # Vmod-dbrw is free software; you can redistribute it and/or modify | 4 | # Vmod-dbrw is free software; you can redistribute it and/or modify |
5 | # it under the terms of the GNU General Public License as published by | 5 | # it under the terms of the GNU General Public License as published by |
@@ -14,7 +14,7 @@ | |||
14 | # You should have received a copy of the GNU General Public License | 14 | # You should have received a copy of the GNU General Public License |
15 | # along with vmod-dbrw. If not, see <http://www.gnu.org/licenses/>. | 15 | # along with vmod-dbrw. If not, see <http://www.gnu.org/licenses/>. |
16 | AC_PREREQ(2.69) | 16 | AC_PREREQ(2.69) |
17 | AC_INIT([vmod-dbrw], 2.7, [gray@gnu.org]) | 17 | AC_INIT([vmod-dbrw], 2.8, [gray@gnu.org]) |
18 | AC_CONFIG_AUX_DIR([build-aux]) | 18 | AC_CONFIG_AUX_DIR([build-aux]) |
19 | AC_CONFIG_MACRO_DIR([m4]) | 19 | AC_CONFIG_MACRO_DIR([m4]) |
20 | AC_CONFIG_SRCDIR(src/vmod_dbrw.vcc) | 20 | AC_CONFIG_SRCDIR(src/vmod_dbrw.vcc) |
@@ -43,7 +43,7 @@ AC_PROG_MAKE_SET | |||
43 | AC_HEADER_STDC | 43 | AC_HEADER_STDC |
44 | AC_CHECK_HEADERS([sys/stdlib.h]) | 44 | AC_CHECK_HEADERS([sys/stdlib.h]) |
45 | 45 | ||
46 | AM_VARNISHAPI([6.0],[6.4.0]) | 46 | AM_VARNISHAPI([6.0],[7.1.0]) |
47 | AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR], | 47 | AC_DEFINE_UNQUOTED([VARNISHAPI_MAJOR],[$VARNISHAPI_MAJOR], |
48 | [Varnish API major version number]) | 48 | [Varnish API major version number]) |
49 | 49 | ||
diff --git a/doc/vmod-dbrw.3 b/doc/vmod-dbrw.3 index 26422f1..023e215 100644 --- a/doc/vmod-dbrw.3 +++ b/doc/vmod-dbrw.3 | |||
@@ -1,5 +1,5 @@ | |||
1 | .\" This file is part of Vmod-dbrw -*- nroff -*- | 1 | .\" This file is part of Vmod-dbrw -*- nroff -*- |
2 | .\" Copyright (C) 2013-2020 Sergey Poznyakoff | 2 | .\" Copyright (C) 2013-2022 Sergey Poznyakoff |
3 | .\" | 3 | .\" |
4 | .\" Vmod-dbrw is free software; you can redistribute it and/or modify | 4 | .\" Vmod-dbrw is free software; you can redistribute it and/or modify |
5 | .\" it under the terms of the GNU General Public License as published by | 5 | .\" it under the terms of the GNU General Public License as published by |
@@ -13,7 +13,7 @@ | |||
13 | .\" | 13 | .\" |
14 | .\" You should have received a copy of the GNU General Public License | 14 | .\" You should have received a copy of the GNU General Public License |
15 | .\" along with vmod-dbrw. If not, see <http://www.gnu.org/licenses/>. | 15 | .\" along with vmod-dbrw. If not, see <http://www.gnu.org/licenses/>. |
16 | .TH VMOD-DBRW 3 "April 9, 2020" "VMOD-DBRW" "User Reference" | 16 | .TH VMOD-DBRW 3 "August 21, 2022" "VMOD-DBRW" "User Reference" |
17 | .SH NAME | 17 | .SH NAME |
18 | vmod-dbrw \- Database-driven rewrite rules for Varnish Cache | 18 | vmod-dbrw \- Database-driven rewrite rules for Varnish Cache |
19 | .SH SYNOPSIS | 19 | .SH SYNOPSIS |
@@ -318,7 +318,7 @@ sub vcl_synth { | |||
318 | .\" for man-based doc pages. | 318 | .\" for man-based doc pages. |
319 | .if "\V[MANCGI]"WEBDOC" \{\ | 319 | .if "\V[MANCGI]"WEBDOC" \{\ |
320 | . ds package vmod-dbrw | 320 | . ds package vmod-dbrw |
321 | . ds version 2.7 | 321 | . ds version 2.8 |
322 | . so download.inc | 322 | . so download.inc |
323 | \} | 323 | \} |
324 | .SH "SEE ALSO" | 324 | .SH "SEE ALSO" |
@@ -354,7 +354,7 @@ Sergey Poznyakoff | |||
354 | .SH "BUG REPORTS" | 354 | .SH "BUG REPORTS" |
355 | Report bugs to <gray@gnu.org>. | 355 | Report bugs to <gray@gnu.org>. |
356 | .SH COPYRIGHT | 356 | .SH COPYRIGHT |
357 | Copyright \(co 2013-2020 Sergey Poznyakoff | 357 | Copyright \(co 2013-2022 Sergey Poznyakoff |
358 | .br | 358 | .br |
359 | .na | 359 | .na |
360 | License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | 360 | License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> |
diff --git a/src/vmod_dbrw.c b/src/vmod_dbrw.c index 3509d04..f6b6446 100644 --- a/src/vmod_dbrw.c +++ b/src/vmod_dbrw.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* This file is part of vmod-dbrw | 1 | /* This file is part of vmod-dbrw |
2 | Copyright (C) 2013-2020 Sergey Poznyakoff | 2 | Copyright (C) 2013-2022 Sergey Poznyakoff |
3 | 3 | ||
4 | Vmod-dbrw is free software; you can redistribute it and/or modify | 4 | Vmod-dbrw is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
@@ -380,6 +380,10 @@ expand_backref(VRT_CTX, const char *str, const char *val, | |||
380 | 380 | ||
381 | #define ISEMPTY(s) ((s) == NULL || (s)[0] == 0) | 381 | #define ISEMPTY(s) ((s) == NULL || (s)[0] == 0) |
382 | 382 | ||
383 | #if VARNISHAPI_MAJOR > 6 | ||
384 | # define vrt_magic_string_end 0 | ||
385 | #endif | ||
386 | |||
383 | static void | 387 | static void |
384 | dbrw_sethdr(VRT_CTX, int where, const char *what, const char *value) | 388 | dbrw_sethdr(VRT_CTX, int where, const char *what, const char *value) |
385 | { | 389 | { |