Branch data Line data Source code
1 : : #pragma once
2 : :
3 : : #include <QString>
4 : :
5 : : // T-621/FUNC-04: URL scheme whitelist — extracted from dead-code MailWebEnginePage.
6 : : // Used by MailView and ExternalContentInterceptor to decide which
7 : : // link schemes may be opened in the system browser.
8 : 13 : inline bool isAllowedExternalScheme(const QString &scheme) {
9 [ + + + - ]: 38 : return scheme == QStringLiteral("http") ||
10 [ + + + + : 63 : scheme == QStringLiteral("https") ||
+ + + - ]
11 [ + + + + : 22 : scheme == QStringLiteral("mailto");
+ + ]
12 : : }
|