From 9301c50e3b416fe26a28159fac9f732c5766c641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 27 May 2014 10:10:15 +0200 Subject: [PATCH] More strict string search regex --- fdroidserver/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index b7ee5081..193b4443 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -712,7 +712,7 @@ def retrieve_string(app_dir, string, xmlfiles=None): string_search = None if string.startswith('@string/'): - string_search = re.compile(r'.*"' + string[8:] + '".*?>([^<]+?)<.*').search + string_search = re.compile(r'.*name="' + string[8:] + '".*?>([^<]+?)<.*').search elif string.startswith('&') and string.endswith(';'): string_search = re.compile(r'.*').search