mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-14 16:46:28 +01:00
Ensure that URL are always escaped
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include <wx/mimetype.h>
|
#include <wx/mimetype.h>
|
||||||
#include <wx/filename.h>
|
#include <wx/filename.h>
|
||||||
|
#include <wx/uri.h>
|
||||||
|
|
||||||
#include "LinkingHtmlWindow.h"
|
#include "LinkingHtmlWindow.h"
|
||||||
#include "../HelpText.h"
|
#include "../HelpText.h"
|
||||||
@@ -79,7 +80,8 @@ void BrowserFrame::UpdateButtons()
|
|||||||
|
|
||||||
void OpenInDefaultBrowser(const wxHtmlLinkInfo& link)
|
void OpenInDefaultBrowser(const wxHtmlLinkInfo& link)
|
||||||
{
|
{
|
||||||
wxLaunchDefaultBrowser(link.GetHref());
|
wxURI uri(link.GetHref());
|
||||||
|
wxLaunchDefaultBrowser(uri.BuildURI());
|
||||||
}
|
}
|
||||||
|
|
||||||
LinkingHtmlWindow::LinkingHtmlWindow(wxWindow *parent, wxWindowID id /*= -1*/,
|
LinkingHtmlWindow::LinkingHtmlWindow(wxWindow *parent, wxWindowID id /*= -1*/,
|
||||||
|
|||||||
Reference in New Issue
Block a user