Permalink
Browse files

unused replacement variable displays %1 in all html2bbcode 'code' blocks

  • Loading branch information...
1 parent 4b1f355 commit 4134fd3dcee1b26b888c89c47f798fd3fd058064 @friendica committed Mar 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/html2bbcode.php
View
@@ -212,7 +212,7 @@ function html2bbcode($message)
node2bbcode($doc, 'audio', array('src'=>'/(.+)/'), '[audio]$1', '[/audio]');
node2bbcode($doc, 'iframe', array('src'=>'/(.+)/'), '[iframe]$1', '[/iframe]');
- node2bbcode($doc, 'code', array(), '[code]$1', '[/code]');
+ node2bbcode($doc, 'code', array(), '[code]', '[/code]');
$message = $doc->saveHTML();

0 comments on commit 4134fd3

Please sign in to comment.