projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d386da
)
huh? was in develop branch but not here?
author
Roland Haeder
<roland@mxchange.org>
Sat, 8 Apr 2017 17:12:31 +0000
(19:12 +0200)
committer
Roland Haeder
<roland@mxchange.org>
Sat, 8 Apr 2017 17:12:31 +0000
(19:12 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/bbcode.php
patch
|
blob
|
history
diff --git
a/include/bbcode.php
b/include/bbcode.php
index 339159ec843ad870bedc17bec0127e8eaaa32b22..c29dcaffae66d72f687cd883e4539f9dc39d827a 100644
(file)
--- a/
include/bbcode.php
+++ b/
include/bbcode.php
@@
-307,8
+307,9
@@
function bb_tag_preg_replace($pattern, $replace, $name, $s) {
$start = substr($string, 0, $pos['start']['open']);
$subject = substr($string, $pos['start']['open'], $pos['end']['close'] - $pos['start']['open']);
$end = substr($string, $pos['end']['close']);
- if ($end === false)
+ if ($end === false)
{
$end = '';
+ }
$subject = preg_replace($pattern, $replace, $subject);
$string = $start . $subject . $end;