Skip to content
Snippets Groups Projects
Commit a6b3b98e authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-12898 Added https to allowed audio links

parent 9634bcf4
No related branches found
No related tags found
No related merge requests found
...@@ -1902,7 +1902,8 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use ...@@ -1902,7 +1902,8 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use
// If there is a new music URL and it's valid, play it. // If there is a new music URL and it's valid, play it.
if (music_url.size() > 12) if (music_url.size() > 12)
{ {
if (music_url.substr(0, 7) == "http://") if (music_url.substr(0, 7) == "http://"
|| music_url.substr(0, 8) == "https://")
{ {
LLViewerRegion *region = LLWorld::getInstance()->getRegion(msg->getSender()); LLViewerRegion *region = LLWorld::getInstance()->getRegion(msg->getSender());
optionally_start_music(music_url, parcel->mLocalID, region->getRegionID()); optionally_start_music(music_url, parcel->mLocalID, region->getRegionID());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment