image blocking problem, back out previous patch, r=bryner, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@103862 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
851853222e
commit
501782c47e
@ -102,7 +102,7 @@ CKutil_GetLine(nsInputFileStream& strm, nsString& aLine) {
|
||||
|
||||
PUBLIC char *
|
||||
CKutil_ParseURL (const char *url, int parts_requested) {
|
||||
char *rv=0, *colon, *portColon, *slash, *ques_mark, *hash_mark;
|
||||
char *rv=0,*colon, *slash, *ques_mark, *hash_mark;
|
||||
char *atSign, *host, *passwordColon, *gtThan;
|
||||
assert(url);
|
||||
if(!url) {
|
||||
@ -186,10 +186,6 @@ CKutil_ParseURL (const char *url, int parts_requested) {
|
||||
if (gtThan) {
|
||||
*gtThan = '\0';
|
||||
}
|
||||
portColon = PL_strchr(host, ':');
|
||||
if (portColon) {
|
||||
*portColon = '\0';
|
||||
}
|
||||
|
||||
/* limit hostnames to within MAX_HOST_NAME_LEN characters to keep from crashing */
|
||||
if(PL_strlen(host) > MAX_HOST_NAME_LEN) {
|
||||
@ -212,9 +208,6 @@ CKutil_ParseURL (const char *url, int parts_requested) {
|
||||
if (gtThan) {
|
||||
*gtThan = '>';
|
||||
}
|
||||
if (portColon) {
|
||||
*portColon = ':';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user