diff -r f421f639ef65 libs/libmythupnp/httprequest.cpp
a
|
b
|
|
1204 | 1204 | { |
1205 | 1205 | // Strip out leading http://192.168.1.1:6544/ -> / |
1206 | 1206 | // Should fix #8678 |
1207 | | m_sBaseUrl.replace(QRegExp("^http://.*?/"), "/"); |
| 1207 | QRegExp sRegex("^http://.*/"); |
| 1208 | sRegex.setMinimal(true); |
| 1209 | m_sBaseUrl.replace(sRegex, "/"); |
1208 | 1210 | QStringList sList = m_sBaseUrl.split('/', QString::SkipEmptyParts); |
1209 | 1211 | |
1210 | 1212 | m_sMethod = ""; |
… |
… |
|
1216 | 1218 | } |
1217 | 1219 | |
1218 | 1220 | m_sBaseUrl = '/' + sList.join( "/" ); |
1219 | | //VERBOSE(VB_UPNP, QString("ExtractMethodFromURL : %1 : ").arg(m_sMethod)); |
| 1221 | VERBOSE(VB_UPNP, QString("ExtractMethodFromURL(end) : %1 : %2").arg(m_sMethod).arg(m_sBaseUrl)); |
1220 | 1222 | } |
1221 | 1223 | |
1222 | 1224 | ///////////////////////////////////////////////////////////////////////////// |