summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--code/bbcode.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/bbcode.inc.php b/code/bbcode.inc.php
index d1cbe0b..2696948 100644
--- a/code/bbcode.inc.php
+++ b/code/bbcode.inc.php
@@ -16,7 +16,7 @@
$color = array('starttag' => '\[color=([A-Za-z]+|#(?:[\dA-Fa-f]{3}){1,2}?|rgb\((?:100%|\d?\d%),(?:100%|\d?\d%),(?:100%|\d?\d%)\)|rgb\((?:1?\d?\d|2(?:[0-4]\d|5[0-5])),(?:1?\d?\d|2(?:[0-4]\d|5[0-5])),(?:1?\d?\d|2(?:[0-4]\d|5[0-5]))\))\]', 'endtag' => '\[/color\]',
'starthtml' => '<span style="color:$1">', 'endhtml' => '</span>',
'children' => array(&$b, &$u, &$i, &$color, &$img, &$url1, &$url2));
- $img = array('starttag' => '\[img\]([^\[]*)\[/img\]', 'starthtml' => '<img src="$1" />');
+ $img = array('starttag' => '\[img\]([^\[]*)\[/img\]', 'starthtml' => '<img src="$1" alt="" />');
$url1 = array('starttag' => '\[url\]([^\[]*)\[/url\]', 'starthtml' => '<a href="$1">$1</a>)');
$url2 = array('starttag' => '\[url=([^\]]*)\]', 'endtag' => '\[/url\]',
'starthtml' => '<a href="$1">', 'endhtml' => '</a>',