// Name: webviewfilehandler.cpp
// Purpose: Custom webview handler to allow archive browsing
// Author: Steven Lamerton
-// Id: $Id$
// Copyright: (c) 2011 Steven Lamerton
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
return NULL;
wxString fspath = "file:" +
- EscapeFileNameCharsInURL(path.substr(doubleslash + 2));
+ EscapeFileNameCharsInURL(path.substr(doubleslash + 2).c_str());
return m_fileSystem->OpenFile(fspath);
}
//Otherwise we need to extract the protocol
return NULL;
wxString fspath = "file:" +
- EscapeFileNameCharsInURL(mainpath.substr(doubleslash + 2))
+ EscapeFileNameCharsInURL(mainpath.substr(doubleslash + 2).c_str())
+ "#" + protocol +":" + archivepath;
return m_fileSystem->OpenFile(fspath);
}