Branch: Tag:

1996-12-05

1996-12-05 08:46:53 by David Hedbor <david@hedbor.org>

-----
6925: Bad argument 3 to replace()
write_to_log in line 658 in roxen.pike
notify in line 72 in hosts.pike
blocking_ip_to_host in line 131 in hosts.pike
htaccess in line 453 in modules/filters/htaccess.pike
try_htaccess in line 680 in modules/filters/htaccess.pike
first_try in line 738 in modules/filters/htaccess.pike
got_data in line 619 in protocols/http.pike
-----

Fixat. Om både host och oh är != sträng, så skrivs error::no_host istället.

Rev: server/base_server/roxen.pike:1.18

1: - string cvs_version = "$Id: roxen.pike,v 1.17 1996/12/04 09:40:04 per Exp $"; + string cvs_version = "$Id: roxen.pike,v 1.18 1996/12/05 08:46:53 neotron Exp $";   #define IN_ROXEN   #include <module.h>   #include <variables.h>
655:   {    int s;    if(!host) host=oh; +  if(!stringp(host)) +  host = "error:no_host";    if(fun) fun(replace(rest, "$host", host));   }