diff --git a/phpmyfaq/src/phpMyFAQ/Helper/FaqHelper.php b/phpmyfaq/src/phpMyFAQ/Helper/FaqHelper.php index 48c7c0682a..d3a7f00820 100644 --- a/phpmyfaq/src/phpMyFAQ/Helper/FaqHelper.php +++ b/phpmyfaq/src/phpMyFAQ/Helper/FaqHelper.php @@ -232,7 +232,7 @@ public function cleanUpContent(string $content): string ->allowRelativeLinks() ->allowStaticElements() ->allowRelativeMedias() - ->forceHttpsUrls() + ->forceHttpsUrls($this->config->get('security.useSslOnly')) ->allowElement('iframe', ['title', 'src', 'width', 'height', 'allow', 'allowfullscreen']) ->allowMediaSchemes(['https', 'http', 'mailto', 'data']) ->allowMediaHosts(