Lines 1042-1048
Link Here
|
1042 |
out->path_type = REL_PATH; |
1042 |
out->path_type = REL_PATH; |
1043 |
} |
1043 |
} |
1044 |
|
1044 |
|
1045 |
if( ( ( begin_hostport + 1 ) < max ) && ( in[begin_hostport] == '/' ) |
1045 |
//parse hostport only if scheme was found |
|
|
1046 |
if( ( begin_hostport > 0 ) && ( ( begin_hostport + 1 ) < max ) && ( in[begin_hostport] == '/' ) |
1046 |
&& ( in[begin_hostport + 1] == '/' ) ) { |
1047 |
&& ( in[begin_hostport + 1] == '/' ) ) { |
1047 |
begin_hostport += 2; |
1048 |
begin_hostport += 2; |
1048 |
|
1049 |
|
Lines 1059-1064
Link Here
|
1059 |
out->hostport.text.size = 0; |
1060 |
out->hostport.text.size = 0; |
1060 |
out->hostport.text.buff = 0; |
1061 |
out->hostport.text.buff = 0; |
1061 |
begin_path = begin_hostport; |
1062 |
begin_path = begin_hostport; |
|
|
1063 |
|
1064 |
//remove excessive leading slashes (fix for Samsung Smart TV 2012) |
1065 |
while( ( ( begin_path + 1 ) < max ) && ( in[begin_path] == '/' ) && ( in[begin_path + 1] == '/') ) { |
1066 |
begin_path++; |
1067 |
} |
1062 |
} |
1068 |
} |
1063 |
|
1069 |
|
1064 |
begin_fragment = |
1070 |
begin_fragment = |