Ticket #8678: 0001-Attempt-to-fix-8678.patch

File 0001-Attempt-to-fix-8678.patch, 962 bytes (added by beirdo, 14 years ago)

Patch to potentially fix - v1

  • mythtv/libs/libmythupnp/httprequest.cpp

    From 72a1afc40d0ebd98008468f866a1fef5a37a3499 Mon Sep 17 00:00:00 2001
    From: Gavin Hurlbut <gjhurlbu@gmail.com>
    Date: Tue, 20 Jul 2010 13:39:19 -0700
    Subject: [PATCH] Attempt to fix #8678.
    
    Strip out http://host:port/ from UPnP streaming requests before parsing the
    method out.
    ---
     mythtv/libs/libmythupnp/httprequest.cpp |    3 +++
     1 files changed, 3 insertions(+), 0 deletions(-)
    
    diff --git a/mythtv/libs/libmythupnp/httprequest.cpp b/mythtv/libs/libmythupnp/httprequest.cpp
    index 1086627..b8a6c52 100644
    a b bool HTTPRequest::ParseRange( QString sRange, 
    12171217
    12181218void HTTPRequest::ExtractMethodFromURL()
    12191219{
     1220    // Strip out leading http://192.168.1.1:6544/ -> /
     1221    // Should fix #8678
     1222    m_sBaseUrl.replace(QRegExp("^http://.*?/"), "/");
    12201223    QStringList sList = m_sBaseUrl.split('/', QString::SkipEmptyParts);
    12211224
    12221225    m_sMethod = "";