Skip to content

Conversation

@christianbeeznest
Copy link
Contributor

No description provided.

$content = $documentRepo->getResourceFileContent($document);
if (!is_string($content) || !preg_match('/^\s*<(?!!--|!doctype|html|body)/i', $content)) {
$content = $documentRepo->getResourceFileContent($doc);
if (!is_string($content) || stripos(ltrim($content), '<') !== 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

@ywarnier ywarnier merged commit 888b5e7 into chamilo:master Aug 28, 2025
2 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants