1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-11 03:55:04 -05:00
Commit Graph

35 Commits

Author SHA1 Message Date
cketti
63abf05776 Sanitize HTML to remove meta refresh
Using
  <meta http-equiv="Refresh" content="1; URL=http://example.com/">
in a HTML message causes WebView to load the URL in the default browser.
Overriding WebViewClient.shouldOverrideUrlLoading() allows us to cancel
loading this URL. Sadly, I found no way to find out whether the method was
called because of a meta refresh or because the user clicked on a link.

So now we're using HtmlCleaner to parse the HTML and remove all "meta" elements
containing an "http-equiv" attribute with a value of "refresh".
2015-01-11 11:29:53 +01:00
cketti
82736f3a8b Merge pull request #524 from k9mail/merge_pgp_mime_branch
Merge changes from PGP/MIME repository
2015-01-02 22:04:28 +01:00
Jan Berkel
fe8e779b32 Reformat 2014-12-23 10:15:24 +01:00
cketti
152e0a0530 Revert ImapStore URI change
Reverts changes introduced with commit 8194c20ffe
Adds test to make sure usernames/passwords with special characters encode/decode properly.
2014-12-22 18:24:22 +01:00
cketti
703c007fc8 Fix code style 2014-12-22 17:33:48 +01:00
Jan Berkel
8194c20ffe Fix IMAP uri decode when user/pw contains ':' 2014-12-21 11:52:05 +01:00
cketti
4f8fc5bc5b Merge remote-tracking branch 'k9mail_pgp_mime/master'
Fixed lots of conflicts
2014-12-20 08:07:46 +01:00
cketti
7d3cea87f9 Use default directory structure for tests-on-jvm subproject 2014-12-20 00:10:38 +01:00
cketti
1212f9d0f2 Move main application from root project to subproject 'k9mail' 2014-12-20 00:10:38 +01:00
cketti
cfbebdb4b6 Remove files not necessary for Gradle builds 2014-12-19 23:19:19 +01:00
cketti
4b0d016bb7 Add support for code coverage to tests-on-jvm project 2014-12-19 03:58:03 +01:00
cketti
3760ca95d5 Add checkstyle to tests-on-jvm project 2014-12-18 14:15:45 +01:00
cketti
3f7fc83d58 Add findbugs to Gradle build 2014-12-18 13:39:59 +01:00
Jan Berkel
66dd4990b1 Move tests to JVM + convert to modern syntax 2014-12-18 12:00:49 +01:00
Jan Berkel
0a6920c63e Refactor IMAP code + tests 2014-12-18 11:24:43 +01:00
Jan Berkel
ac33de6310 Fix EOLConvertingOutputStream + add test
Add test for another EOLConvertingOutputStream edge case

Fix bug in EOLConvertingOutputStream

Swap order

Simplify
2014-12-17 14:27:37 +01:00
Jan Berkel
cc6c6bf096 Tests-on-jvm should be a subproject 2014-12-17 12:47:39 +01:00
Jan Berkel
5248350953 Clean up tests 2014-12-17 12:46:53 +01:00
cketti
86487a738d Make Gradle task testOnJVM only depend on assembleDebug 2014-12-17 03:17:08 +01:00
cketti
d24998d584 Fix tests-on-jvm 2014-12-16 05:16:09 +01:00
Jan Berkel
7d6e6b8abe MimeUtility / Message refactor
* break MimeUtility class into manageable pieces (MessageExtractor/CharsetSupport)
 * move HTML related code out of the mail package
2014-12-15 12:26:06 +01:00
Jan Berkel
2e98ff56e5 Break dependencies 2014-12-12 13:35:36 +00:00
cketti
9b61fe0f0e Merge remote-tracking branch 'k9mail_pgp_mime/master'
Conflicts:
	src/com/fsck/k9/activity/AccessibleEmailContentActivity.java
2014-11-12 19:22:53 +01:00
Art O Cathain
668ee71b6c fix tests on JVM 2014-10-11 12:10:07 +01:00
cketti
4105cdd3cb Change/fix indentation of Gradle files 2014-09-18 15:18:41 +02:00
cketti
103f85aa01 Fix 'testsOnJVM' Gradle task 2014-06-21 15:33:45 +02:00
cketti
a9cfa9ae68 Code style
No functional changes
2014-05-03 06:13:38 +02:00
Koji Arai
0a09060ed7 adapt to product code 2014-05-02 13:42:05 +09:00
Koji Arai
215ada2e77 astyle 2014-05-02 13:21:35 +09:00
Koji Arai
68850b1dc9 Use setter for quoted text like signature 2014-05-02 09:43:14 +09:00
Koji Arai
71e766999c adapt to product code 2014-05-02 09:11:31 +09:00
Koji Arai
7fd52a735d fixup! Rename mDraft to mInsertSeparator. 2014-05-02 08:44:19 +09:00
Koji Arai
6155a65f65 Refactoring: extract a class TextBodyBuilder 2014-05-02 01:33:39 +09:00
Koji Arai
59ae1d034c Add build.gradle for tests-on-jvm 2014-04-29 15:35:29 +09:00
Koji Arai
fbadaca3e3 Added tests on JVM. 2013-09-21 09:23:33 +09:00