From 3778a42d7be490556ad4b888d60b1ac7ede3a4c6 Mon Sep 17 00:00:00 2001 From: Chris Horsley Date: Sat, 1 Nov 2014 14:30:32 +1000 Subject: [PATCH] Avoid catastrophic backtracking for BuySellAds html regex --- share/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/apps.json b/share/apps.json index 1e261eedf..fcda70a37 100644 --- a/share/apps.json +++ b/share/apps.json @@ -461,7 +461,7 @@ "website": "buysellads.com", "cats": [ 36 ], "script": "^https?://s\\d\\.buysellads\\.com/", - "html": "]*>(?:(?!<\\/script>)(?:.|\\s))+?bsa\\.src\\s*=\\s*[\"'][^'\"]+s\\d\\.buysellads\\.com", + "html": "]*>[^<]+?bsa.src\\s*=\\s*['\"](?:https?:)?\\/{2}\\w\\d\\.buysellads\\.com\\/[\\w\\d\\/]+?bsa\\.js['\"]", "env": "^_bsa" }, "Canon": {