1997-05-14
1997-05-14 13:26:22 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
a75a328227d77d626e6f737f176a34c30136d1f3
(8 lines)
(+4/-4)
[
Show
| Annotate
]
Branch: 5.2
Fixed allow ip and deny ip problems.
Rev: server/base_server/configuration.pike:1.26
1:
- string cvs_version = "$Id: configuration.pike,v 1.25 1997/04/29 10:26:33 grubba Exp $";
+ string cvs_version = "$Id: configuration.pike,v 1.26 1997/05/14 13:26:22 grubba Exp $";
#include <module.h>
#include <roxen.h>
/* A configuration.. */
700: Inside #if defined(MODULE_LEVEL_SECURITY)
{
case MOD_ALLOW: // allow ip=...
if(level[1](id->remoteaddr)) return 0; // Match. It's ok.
- return http_low_answer(403, "<h2>Access forbidden</h2>");
+
continue;
case MOD_DENY: // deny ip=...
- if(level[1](id->remoteaddr)) throw("");
+ if(level[1](id->remoteaddr))
return http_low_answer(403, "<h2>Access forbidden</h2>");
continue;