Roxen.git/
server/
etc/
modules/
Roxen.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2000-03-28
2000-03-28 14:46:04 by Martin Nilsson <mani@lysator.liu.se>
f70aa71b0d544932099e8e3b69652446368a92c9 (
9
lines) (+
6
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
Better handling of broken port configurations
Rev: server/etc/modules/Roxen.pmod:1.15
1:
/*
-
* $Id: Roxen.pmod,v 1.
14
2000/03/
25
23
:
47
:
31
nilsson Exp $
+
* $Id: Roxen.pmod,v 1.
15
2000/03/
28
14
:
46
:
04
nilsson Exp $
* * Various helper functions. *
862:
break; }
-
string protocol, server, path;
+
string protocol, server, path
=""
;
int port; if(sscanf(url, "%s://%s:%d/%s", protocol, server, port, path)!=4 &&
-
sscanf(url, "%s://%s/%s", protocol, server, path)!=3)
+
sscanf(url, "%s://%s
:%d", protocol, server, port)!=3 &&
+
sscanf(url, "%s:
/
/
%s
/%s
", protocol, server, path)!=3
&&
+
sscanf(url, "%s://%s", protocol, server
)
!=2 )
return 0; if(protocol=="fhttp") protocol="http";