mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Quote CID before using it in a regular expression
Fixes issue 3227
This commit is contained in:
parent
2cd178e684
commit
939660faf4
@ -13,6 +13,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import com.fsck.k9.helper.HtmlConverter;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
@ -2429,7 +2430,7 @@ public class LocalStore extends Store implements Serializable {
|
||||
String new_html;
|
||||
|
||||
new_html = cursor.getString(0);
|
||||
new_html = new_html.replaceAll("cid:" + contentId,
|
||||
new_html = new_html.replaceAll(Pattern.quote("cid:" + contentId),
|
||||
contentUri.toString());
|
||||
|
||||
ContentValues cv = new ContentValues();
|
||||
|
Loading…
Reference in New Issue
Block a user