1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-24 08:38:51 -05:00

Quote CID before using it in a regular expression

Fixes issue 3227
This commit is contained in:
cketti 2011-04-10 18:29:25 +02:00
parent 2cd178e684
commit 939660faf4

View File

@ -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();