deployment and fixed punycode crashing program
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include <QMessageBox>
|
||||
#include <QPixmap>
|
||||
#include <settingsdialog.h>
|
||||
#include <string>
|
||||
#include <boost/regex.hpp>
|
||||
|
||||
#ifdef BUILD_OFD_LOCAL_QR_SCAN
|
||||
# include <adjustpicturedialog.h>
|
||||
@@ -125,6 +127,9 @@ void MainWindow::httpNewMessageHandler(QString message) {
|
||||
|
||||
//erase /?result= from the string
|
||||
parametersString.erase(0, parametersString.find("=") + 1);
|
||||
//TODO: punycode %26 %3D
|
||||
parametersString = boost::regex_replace(parametersString, boost::regex("%26"), "&");
|
||||
parametersString = boost::regex_replace(parametersString, boost::regex("%3D"), "=");
|
||||
|
||||
std::vector<std::string> parameters = split(parametersString, "&");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user