httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo>
Subject PR 17462: let mod_rewrite hard limit its internal redirects
Date Thu, 27 Feb 2003 14:07:31 GMT
I'd guess this has bitten a lot of people. There are several cases, in 
which mod_rewrite runs into a deadloop of internal redirects.

I think, we can fix it by counting the times the fixup hook effectively 
works (regardless of equality of the uris) and stop after a configurable 
limit, e.g.

RewriteOptions MaxRedirects=x

where x defaults to 10 or so.
mod_rewrite could store that value in r->request_config. If it's exceeded, 
a config error is assumed and an error logged. The response should be 500 


tvc!ifmm)%*|#Qfsm!A`#~tvc!jt)%*|(Ibdlfs(~  # What the hell is JAPH? ;
@_=split/\s\s+#/;$_=(join''=>map{chr(ord(  #             André Malo ;
$_)-1)}split//=>$_[0]).$_[1];s s.*s$_see;  # ;

View raw message