diff --git a/include/bbcode.php b/include/bbcode.php
index dfc64f814..6bb33671e 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -914,14 +914,14 @@ function bb_code_unprotect_sub($match) {
}
function bb_code($match) {
- if(strpos($match[0], "
"))
+ if(strpos($match[0], PHP_EOL))
return '
' . bb_code_protect(trim($match[1])) . '';
else
return '' . bb_code_protect(trim($match[1])) . '';
}
function bb_code_options($match) {
- if(strpos($match[0], "