make URL sanitization BIT more nice
This commit is contained in:
parent
0c43242488
commit
831f10d896
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ QString NetworkFactory::networkErrorText(QNetworkReply::NetworkError error_code)
|
|||
}
|
||||
|
||||
QString NetworkFactory::sanitizeUrl(const QString& url) {
|
||||
return QString(url).replace(QRegularExpression(QSL("[^\\w\\-.~:\\/?#\\[\\]@!$&'()*+,;=%]")),
|
||||
return QString(url).replace(QRegularExpression(QSL("[^\\w\\-.~:\\/?#\\[\\]@!$&'()*+,;=% \\|]")),
|
||||
QString());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue