]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't pass raw urls to logging functions in the wxWebView sample as they can contain...
authorSteve Lamerton <steve.lamerton@gmail.com>
Thu, 19 May 2011 20:43:45 +0000 (20:43 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Thu, 19 May 2011 20:43:45 +0000 (20:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/web/web.cpp

index c22ebaa6e110da10b340701161ace6151c69c3a2..a3194bb8b4132997231052f57c19805b07ef86b8 100644 (file)
@@ -281,7 +281,7 @@ public:
             frame->Layout();
         }
         
-        wxLogMessage("Navigation request to '" + evt.GetHref() + "' (target='" +
+        wxLogMessage("%s", "Navigation request to '" + evt.GetHref() + "' (target='" +
                    evt.GetTarget() + "')");
         
         wxASSERT(m_browser_ctrl->IsBusy());
@@ -301,7 +301,7 @@ public:
      */
     void onNavigationComplete(wxWebNavigationEvent& evt)
     {
-        wxLogMessage("Navigation complete; url='" + evt.GetHref() + "'");
+        wxLogMessage("%s", "Navigation complete; url='" + evt.GetHref() + "'");
         updateState();
     }
     
@@ -310,7 +310,7 @@ public:
      */
     void onDocumentLoaded(wxWebNavigationEvent& evt)
     {
-        wxLogMessage("Document loaded; url='" + evt.GetHref() + "'");
+        wxLogMessage("%s", "Document loaded; url='" + evt.GetHref() + "'");
         updateState();
         
         m_browser_ctrl->GetZoom();