Skip to content

Commit

Permalink
Fixed regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Mar 16, 2024
1 parent 8fdf688 commit 126cdb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
13 changes: 6 additions & 7 deletions src/irisnet/noncore/cutestuff/bsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ class QTcpSocketSignalRelay : public QObject {
QTcpSocketSignalRelay(QTcpSocket *sock, QObject *parent = nullptr) : QObject(parent)
{
qRegisterMetaType<QAbstractSocket::SocketError>("QAbstractSocket::SocketError");
connect(sock, SIGNAL(hostFound()), SLOT(sock_hostFound()), Qt::QueuedConnection);
connect(sock, SIGNAL(connected()), SLOT(sock_connected()), Qt::QueuedConnection);
connect(sock, SIGNAL(disconnected()), SLOT(sock_disconnected()), Qt::QueuedConnection);
connect(sock, SIGNAL(readyRead()), SLOT(sock_readyRead()), Qt::QueuedConnection);
connect(sock, SIGNAL(bytesWritten(qint64)), SLOT(sock_bytesWritten(qint64)), Qt::QueuedConnection);
connect(sock, SIGNAL(error(QAbstractSocket::SocketError)), SLOT(sock_error(QAbstractSocket::SocketError)),
Qt::QueuedConnection);
connect(sock, &QTcpSocket::hostFound, this, &QTcpSocketSignalRelay::sock_hostFound, Qt::QueuedConnection);
connect(sock, &QTcpSocket::connected, this, &QTcpSocketSignalRelay::sock_connected, Qt::QueuedConnection);
connect(sock, &QTcpSocket::disconnected, this, &QTcpSocketSignalRelay::sock_disconnected, Qt::QueuedConnection);
connect(sock, &QTcpSocket::readyRead, this, &QTcpSocketSignalRelay::sock_readyRead, Qt::QueuedConnection);
connect(sock, &QTcpSocket::bytesWritten, this, &QTcpSocketSignalRelay::sock_bytesWritten, Qt::QueuedConnection);
connect(sock, &QTcpSocket::errorOccurred, this, &QTcpSocketSignalRelay::sock_error, Qt::QueuedConnection);
}

signals:
Expand Down
5 changes: 2 additions & 3 deletions src/xmpp/xmpp-core/tlshandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,8 @@ static bool cert_match_domain(const QString &certname, const QString &acedomain)
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
if (!QRegExp(p1, Qt::CaseSensitive, QRegExp::Wildcard).exactMatch(p2))
#else
if (!QRegularExpression::fromWildcard(QLatin1Char('^') + p1 + QLatin1Char('$'), Qt::CaseSensitive)
.match(p2)
.hasMatch())
// note, wildcards a by default anchored. so exact match
if (!QRegularExpression::fromWildcard(p1, Qt::CaseSensitive).match(p2).hasMatch())
#endif
return false;
}
Expand Down

0 comments on commit 126cdb5

Please sign in to comment.