mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-25 09:42:10 +08:00
Set page include limit to be 3 as expected instead of 4
This commit is contained in:
parent
4bb2b31bc9
commit
ce0b75294f
|
@ -304,7 +304,7 @@ class PageContent
|
|||
if ($blankIncludes) {
|
||||
$content = $this->blankPageIncludes($content);
|
||||
} else {
|
||||
for ($includeDepth = 0; $includeDepth <= 3; $includeDepth++) {
|
||||
for ($includeDepth = 0; $includeDepth < 3; $includeDepth++) {
|
||||
$content = $this->parsePageIncludes($content);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -116,7 +116,8 @@ class PageContentTest extends TestCase
|
|||
$page->save();
|
||||
|
||||
$pageResp = $this->asEditor()->get($page->getUrl());
|
||||
$this->withHtml($pageResp)->assertElementContains('#bkmrk-test', 'Hello Barry Hello Barry Hello Barry ' . $tag);
|
||||
$this->withHtml($pageResp)->assertElementContains('#bkmrk-test', 'Hello Barry Hello Barry Hello Barry Hello Barry ' . $tag);
|
||||
$this->withHtml($pageResp)->assertElementNotContains('#bkmrk-test', 'Hello Barry Hello Barry Hello Barry Hello Barry Hello Barry ' . $tag);
|
||||
}
|
||||
|
||||
public function test_page_content_scripts_removed_by_default()
|
||||
|
|
Loading…
Reference in New Issue
Block a user