summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/feed.php b/feed.php
index dafbb3c07..4e46c254d 100644
--- a/feed.php
+++ b/feed.php
@@ -325,8 +325,8 @@ function rss_buildItems(&$rss,&$data,$opt){
$content = preg_replace('/(<!-- TOC START -->).*(<!-- TOC END -->)/s','',$content);
// add alignment for images
- $content = preg_replace('/class="medialeft"/s', 'class="medialeft" align="left"', $content);
- $content = preg_replace('/class="mediaright"/s', 'class="mediaright" align="right"', $content);
+ $content = preg_replace('/(<img .*? class="medialeft")/s', '\\1 align="left"', $content);
+ $content = preg_replace('/(<img .*? class="mediaright")/s', '\\1 align="right"', $content);
// make URLs work when canonical is not set, regexp instead of rerendering!
if(!$conf['canonical']){