mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
User-agent: escape backslash and parenthesis
This commit is contained in:
parent
5dc002197d
commit
26d2c65f2b
1 changed files with 5 additions and 1 deletions
|
|
@ -556,7 +556,11 @@ QString Utils::getOsProduct(){
|
|||
QString Utils::computeUserAgent(const std::shared_ptr<linphone::Config>& config){
|
||||
return QStringLiteral("%1 (%2) %3 Qt/%4 LinphoneSDK")
|
||||
.arg(Utils::getApplicationProduct())
|
||||
.arg(SettingsModel::getDeviceName(config))
|
||||
.arg(SettingsModel::getDeviceName(config)
|
||||
.replace('\\', "\\\\")
|
||||
.replace('(', "\\(")
|
||||
.replace(')', "\\)")
|
||||
)
|
||||
.arg(Utils::getOsProduct())
|
||||
.arg(qVersion());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue