deployment and fixed punycode crashing program

This commit is contained in:
2025-05-31 01:40:35 +03:00
parent 896b81c999
commit 259b8543a4
9 changed files with 146 additions and 82 deletions

View File

@@ -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, "&");