1999-08-06
1999-08-06 03:15:10 by Per Hedbor <ph@opera.com>
-
0322b7a5245fc6a82e8a9749ba618f50202e1723
(22 lines)
(+13/-9)
[
Show
| Annotate
]
Branch: 5.2
Fixed support for throw(0)
Rev: server/protocols/http.pike:1.150
6: Inside #if defined(MAGIC_ERROR)
#ifdef MAGIC_ERROR
inherit "highlight_pike";
#endif
- constant cvs_version = "$Id: http.pike,v 1.149 1999/08/05 11:57:15 grubba Exp $";
+ constant cvs_version = "$Id: http.pike,v 1.150 1999/08/06 03:15:10 per Exp $";
// HTTP protocol module.
#include <config.h>
private inherit "roxenlib";
335:
// Got extra spaces in the URI.
// All the extra stuff is now in the trailer.
- int end;
-
+ // Get rid of the extra space from the sscanf above.
+ trailer = trailer[..sizeof(trailer) - 2];
f += " " + clientprot;
// Find the last space delimiter.
-
+ int end;
if (!(end = (search(reverse(trailer), " ") + 1))) {
// Just one space in the URI.
clientprot = trailer;
940:
string censor(string what)
{
string a, b, c;
+ if(!what)
+ return "No backtrace";
if(sscanf(what, "%shorization:%s\n%s", a, b, c)==3)
return a+" ################ (censored)\n"+c;
return what;