summaryrefslogtreecommitdiff
path: root/core/src/fpdftext/text_int.h
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2015-12-17 17:46:58 -0800
committerWei Li <weili@chromium.org>2015-12-17 17:46:58 -0800
commitcc70b7b55c9edcd0ff038f59080699060fbbede1 (patch)
tree15e4137ce96d2a74450a8a84d2c4c3b31741f2c4 /core/src/fpdftext/text_int.h
parent391783579c5a8aad346b56903b51e6551600550b (diff)
downloadpdfium-cc70b7b55c9edcd0ff038f59080699060fbbede1.tar.xz
Correctly extracting email addresses
An email address contains user name part and host name part. User name allows dash or underscore, but not leading/ending/double period. Host name doesn't allow leading/ending/double period either. BUG=489107 R=jun_fang@foxitsoftware.com, thestig@chromium.org Review URL: https://codereview.chromium.org/1530763005 .
Diffstat (limited to 'core/src/fpdftext/text_int.h')
-rw-r--r--core/src/fpdftext/text_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdftext/text_int.h b/core/src/fpdftext/text_int.h
index a8f4f37e98..0fe43f2c40 100644
--- a/core/src/fpdftext/text_int.h
+++ b/core/src/fpdftext/text_int.h
@@ -226,7 +226,7 @@ class CPDF_LinkExtract : public IPDF_LinkExtract {
void ParseLink();
void DeleteLinkList();
FX_BOOL CheckWebLink(CFX_WideString& strBeCheck);
- FX_BOOL CheckMailLink(CFX_WideString& str);
+ bool CheckMailLink(CFX_WideString& str);
void AppendToLinkList(int start, int count, const CFX_WideString& strUrl);
private: