Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Pim
Commits
55a04ab9
Commit
55a04ab9
authored
Oct 17, 2013
by
Laurent Montel
😁
Browse files
Fix Bug 326072 - Scam detector misidentifies FQDN as numerical IP
FIXED-IN: 4.11.3 BUG: 326072
parent
75e67eb1
Changes
1
Show whitespace changes
Inline
Side-by-side
messageviewer/scamdetection/scamdetection.cpp
View file @
55a04ab9
...
...
@@ -24,8 +24,7 @@
#include <QDebug>
using
namespace
MessageViewer
;
static
QString
IPv4_PATTERN
=
QLatin1String
(
"[0-9]{1,3}
\\
.[0-9]{1,3}(?:
\\
.[0-9]{0,3})?(?:
\\
.[0-9]{0,3})?"
);
static
QString
IPv4_PATTERN
=
QLatin1String
(
"
\\
b[0-9]{1,3}
\\
.[0-9]{1,3}(?:
\\
.[0-9]{0,3})?(?:
\\
.[0-9]{0,3})?"
);
static
QString
addWarningColor
(
const
QString
&
url
)
{
const
QString
error
=
QString
::
fromLatin1
(
"<font color=#FF0000>%1</font>"
).
arg
(
url
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment