]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_image.cpp
implemented URLs blocking in wxHtmlWindow
[wxWidgets.git] / src / html / m_image.cpp
index 4ab735e28ae4b6cf57a84c36e506b5bfdece81dc..5f5cc37d911bfbcbf49bd4249c0f01c3ad287351 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "wx/html/forcelnk.h"
 #include "wx/html/m_templ.h"
+#include "wx/html/htmlwin.h"
 
 #include "wx/image.h"
 #include "wx/gifdecod.h"
@@ -547,6 +548,9 @@ TAG_HANDLER_BEGIN(IMG, "IMG,MAP,AREA")
                 wxFSFile *str;
                 wxString tmp = tag.GetParam(wxT("SRC"));
                 wxString mn = wxEmptyString;
+                
+                if ( !m_WParser->CanOpenURL(tmp) )
+                    return FALSE;
 
                 str = m_WParser->GetFS()->OpenFile(tmp);
                 if (tag.HasParam(wxT("WIDTH")))