From 5417acb3e5e240a262559dafe7a41d0cffdd10f3 Mon Sep 17 00:00:00 2001 From: jeffreyhorner Date: Fri, 6 Dec 2013 15:16:37 -0600 Subject: [PATCH] Eliminate back references and dot. Causes pcre segfault on long img data uri's. --- feedwordpresshtml.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/feedwordpresshtml.class.php b/feedwordpresshtml.class.php index 91cb5ed..680ea37 100644 --- a/feedwordpresshtml.class.php +++ b/feedwordpresshtml.class.php @@ -6,9 +6,8 @@ function attributeRegex ($tag, $attr) { ($attr)= ) ( - \s*(\"|') - (((?!\\6).)*) - \\6([^>]*>) + \s*(\"|')([^\"']*) + (\"|')([^>]*>) | \s*(((?!/>)[^\s>])*) ([^>]*>)