зеркало из https://github.com/mozilla/gecko-dev.git
image blocking problem, back out previous patch, r=bryner, sr=alecf
This commit is contained in:
Родитель
a3cdd91c11
Коммит
c1ada8a7e7
|
@ -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 = ':';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче