Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 333812 Details for
Bug 449372
net-misc/mediatomb - broken Samsung 2012 TV send an invalid request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mediatomb patch to fix problem with recent Samsung TVs
samsungpatch.diff (text/plain), 938 bytes, created by
Bradley Broom
on 2012-12-30 23:44:37 UTC
(
hide
)
Description:
mediatomb patch to fix problem with recent Samsung TVs
Filename:
MIME Type:
Creator:
Bradley Broom
Created:
2012-12-30 23:44:37 UTC
Size:
938 bytes
patch
obsolete
>--- ./mediatomb-0.12.1/tombupnp/upnp/src/genlib/net/uri/uri.c-old 2012-12-30 17:25:25.000000000 -0600 >+++ ./mediatomb-0.12.1/tombupnp/upnp/src/genlib/net/uri/uri.c 2012-12-30 17:28:38.000000000 -0600 >@@ -1042,7 +1042,8 @@ > out->path_type = REL_PATH; > } > >- if( ( ( begin_hostport + 1 ) < max ) && ( in[begin_hostport] == '/' ) >+ //parse hostport only if scheme was found >+ if( ( begin_hostport > 0 ) && ( ( begin_hostport + 1 ) < max ) && ( in[begin_hostport] == '/' ) > && ( in[begin_hostport + 1] == '/' ) ) { > begin_hostport += 2; > >@@ -1059,6 +1060,11 @@ > out->hostport.text.size = 0; > out->hostport.text.buff = 0; > begin_path = begin_hostport; >+ >+ //remove excessive leading slashes (fix for Samsung Smart TV 2012) >+ while( ( ( begin_path + 1 ) < max ) && ( in[begin_path] == '/' ) && ( in[begin_path + 1] == '/') ) { >+ begin_path++; >+ } > } > > begin_fragment =
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 449372
: 333812