[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
personal/stbuehler/mod-csrf
Glenn Strauss 2016-10-26 11:46:13 -04:00
parent b2ab1c8d0e
commit 86c68ecbc7
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}