summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-10-26 11:46:13 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-10-26 11:47:06 -0400
commit86c68ecbc7e8f10551fefd5b97b2345f2ed571b2 (patch)
tree39a6e3661a7ff8465a9ba191f79e040c86c73b14 /src
parentb2ab1c8d0eadf3b85bf5a777bc8cb59ae5277cb8 (diff)
downloadlighttpd-git-86c68ecbc7e8f10551fefd5b97b2345f2ed571b2.tar.gz
[mod_rewrite] add more info in error log msg
add more info in ENDLESS LOOP error log msg x-ref: https://redmine.lighttpd.net/boards/2/topics/6899
Diffstat (limited to 'src')
-rw-r--r--src/mod_rewrite.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mod_rewrite.c b/src/mod_rewrite.c
index c3c71b80..2e5fd063 100644
--- a/src/mod_rewrite.c
+++ b/src/mod_rewrite.c
@@ -353,8 +353,9 @@ static handler_t process_rewrite_rules(server *srv, connection *con, plugin_data
hctx = con->plugin_ctx[p->id];
if (hctx->loops++ > 100) {
- log_error_write(srv, __FILE__, __LINE__, "s",
- "ENDLESS LOOP IN rewrite-rule DETECTED ... aborting request, perhaps you want to use url.rewrite-once instead of url.rewrite-repeat");
+ data_config *dc = p->conf.context;
+ log_error_write(srv, __FILE__, __LINE__, "SbbSBS",
+ "ENDLESS LOOP IN rewrite-rule DETECTED ... aborting request, perhaps you want to use url.rewrite-once instead of url.rewrite-repeat ($", dc->comp_key, dc->op, "\"", dc->string, "\")");
return HANDLER_ERROR;
}