Permalink
Browse files

Instead of turning img tags into url tags, simply remove them. This a…

…voids generating nested url tags, which are invalid. #152.
  • Loading branch information...
1 parent 44ba15d commit 0d0daf521729422cff234d79227d3e4018f56646 @reines reines committed Oct 18, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 post.php
View
@@ -417,8 +417,8 @@
list($q_poster, $q_message) = $db->fetch_row($result);
- $q_message = preg_replace('%\[img(?:=.*?)?\]%', '[url]', $q_message);
- $q_message = str_replace('[/img]', '[/url]', $q_message);
+ // Remove [img] tags from quoted message
+ $q_message = preg_replace('%\[img(?:=.*?)?\](.*)\[/img\]%', '\1', $q_message);
if ($pun_config['o_censoring'] == '1')
$q_message = censor_words($q_message);

0 comments on commit 0d0daf5

Please sign in to comment.