Commit 67f6e24b authored by zorglub's avatar zorglub
Browse files

Do not add http:// to MRL if the URI given in the HTTP field already contains it (Fixes bug #1510)

parent 26bb0adf
......@@ -2,7 +2,7 @@
* open.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001, 2003 VideoLAN
* $Id: open.cpp,v 1.53 2003/12/13 20:13:07 rocky Exp $
* $Id: open.cpp,v 1.54 2003/12/15 13:10:05 zorglub Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
......@@ -783,8 +783,11 @@ void OpenDialog::UpdateMRL( int i_access_method )
case 2:
/* http access */
mrltemp = wxT("http") + demux + wxT("://") +
net_addrs[2]->GetLineText(0);
if( net_addrs[2]->GetLineText(0).Find("http://") )
{
mrltemp = wxT("http") + demux + wxT("://");
}
mrltemp = mrltemp + net_addrs[2]->GetLineText(0);
break;
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment