Unreported: Fix for the function get_sub_taged_string - now normal and mail links are recognized and won't let the whole layout explode.
This commit is contained in:
@@ -363,6 +363,11 @@ function get_next_word($str) {
|
|||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_next_bbhtml_part($str) {
|
||||||
|
$lim = substr($str,0,strpos($str,'>')+1);
|
||||||
|
return substr($str,0,strpos($str, $lim, strlen($lim))+strlen($lim));
|
||||||
|
}
|
||||||
|
|
||||||
function get_sub_taged_string($str, $bbuid, $maxlen) {
|
function get_sub_taged_string($str, $bbuid, $maxlen) {
|
||||||
$sl = $str;
|
$sl = $str;
|
||||||
$ret = '';
|
$ret = '';
|
||||||
@@ -377,7 +382,10 @@ function get_sub_taged_string($str, $bbuid, $maxlen) {
|
|||||||
$sr = '';
|
$sr = '';
|
||||||
if (substr($sl, 0, 1) == '[') $sr = substr($sl,0,strpos($sl,']')+1);
|
if (substr($sl, 0, 1) == '[') $sr = substr($sl,0,strpos($sl,']')+1);
|
||||||
/* GESCHLOSSENE HTML-TAGS BEACHTEN */
|
/* GESCHLOSSENE HTML-TAGS BEACHTEN */
|
||||||
if (substr($sl, 0, 1) == '<') {
|
if (substr($sl, 0, 2) == '<!') {
|
||||||
|
$sr = get_next_bbhtml_part($sl);
|
||||||
|
$ret .= $sr;
|
||||||
|
} else if (substr($sl, 0, 1) == '<') {
|
||||||
$sr = substr($sl,0,strpos($sl,'>')+1);
|
$sr = substr($sl,0,strpos($sl,'>')+1);
|
||||||
$ret .= $sr;
|
$ret .= $sr;
|
||||||
} else if (is_valid_bbtag($sr, $bbuid)) {
|
} else if (is_valid_bbtag($sr, $bbuid)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user