git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13870
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-wxFSFile *wxHtmlWinParser::OpenURL(wxHtmlURLType type,
+wxFSFile *wxHtmlWinParser::OpenURL(wxHtmlURLType type,
const wxString& url) const
{
// FIXME - normalize the URL to full path before passing to
// OnOpeningURL!!
if ( m_Window )
{
const wxString& url) const
{
// FIXME - normalize the URL to full path before passing to
// OnOpeningURL!!
if ( m_Window )
{
wxString myurl(url);
wxHtmlOpeningStatus status;
for (;;)
{
wxString myurl(url);
wxHtmlOpeningStatus status;
for (;;)
{
- if ( m_Window->OnOpeningURL(type, myurl, &redirect) == wxHTML_REDIRECT )
- myurl = redirect;
- else
+ wxString redirect;
+ status = m_Window->OnOpeningURL(type, myurl, &redirect);
+ if ( status != wxHTML_REDIRECT )
if ( status == wxHTML_BLOCK )
return NULL;
else
if ( status == wxHTML_BLOCK )
return NULL;
else