httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject Re: [PATCH] Sign Server Generated Pages (take 3)
Date Fri, 21 Nov 1997 23:24:32 GMT
Not 100% either. The </PRE> ought to be ouput before the signature is
printed. And there need only be one <HR>.

    Martin
On Sat, Nov 22, 1997 at 12:16:02AM +0100, Martin Kraemer wrote:
> diff -u -r /home/martin/apachen/apachen/src/modules/proxy/proxy_ftp.c ./modules/proxy/proxy_ftp.c
> --- /home/martin/apachen/apachen/src/modules/proxy/proxy_ftp.c	Fri Oct 24 01:53:39 1997
> +++ ./modules/proxy/proxy_ftp.c	Fri Nov 21 23:58:18 1997
> @@ -376,10 +393,19 @@
>  	    o += w;
>  	}
>      }
> -    bputs("</PRE><HR></BODY></HTML>\015\012", con->client);
.....Output </PRE> here, or </PRE><HR> if psignatore() returns ""
> +    site = psignature(r);
> +    if (site[0] != '\0') {
> +	bputs(site, con->client);
> +	if (f2 != NULL)
> +	    bputs(site, f2);
> +	total_bytes_sent += strlen(site);
> +    }
.....set site = "</BODY></HTML>\015\012";
> +    site = "</PRE><HR></BODY></HTML>\015\012";
> +    bputs(site, con->client);


-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message