You are not logged in.
Pages: 1
Hi,
Possible a bug in below function, It make '0' is convert to empty string value.
//File: cms.php
function replaceInternalPageLinks($html) {
$drop_count = 0;
//Bug: This block convert '0' to empty string.
if (!trim($html)) {
return "";
}
/////////////////////////////////////
if (substr($html,0,6) == "ipl://") {
$html = $this->getInternalPageLink($html);
} else {
$html = $this->replaceRelativeRoots($html);
$html = preg_replace_callback('^="(ipl:\/\/[a-zA-Z0-9\:\/\.\?\=\-]*)"^',array($this,"replaceInternalPageLinksHook"),$html);
}
return $html;
}
Offline
Thanks for the bug report! The issue should be fixed in the 4.0-devel and 4.1-devel branches. Here's the 4.0-devel commit:
https://github.com/bigtreecms/BigTree-C … 1569be4c33
Offline
Pages: 1