2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

ConfirmPhoneBox support added.

Limiting StartUrl to 8k symbols to prevent share url text overflow.
Better working with many cases of regular expression switch.
This commit is contained in:
John Preston
2016-07-28 20:01:08 +03:00
parent c0ea6ce346
commit 5df54371b5
26 changed files with 1169 additions and 319 deletions

View File

@@ -264,7 +264,7 @@ void Application::readClients() {
}
} else if (cmd.startsWith(qsl("OPEN:"))) {
if (cStartUrl().isEmpty()) {
startUrl = _escapeFrom7bit(cmds.mid(from + 5, to - from - 5));
startUrl = _escapeFrom7bit(cmds.mid(from + 5, to - from - 5)).mid(0, 8192);
}
} else {
LOG(("Application Error: unknown command %1 passed in local socket").arg(QString(cmd.constData(), cmd.length())));