Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 449372
Collapse All | Expand All

(-)./mediatomb-0.12.1/tombupnp/upnp/src/genlib/net/uri/uri.c-old (-1 / +7 lines)
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 =

Return to bug 449372