Disallow h1,h2,h3 being introduced via Markdown in cards

pull/11/head
Squidly271 2022-01-10 08:24:23 -05:00
parent 03b0422fe5
commit 80ae182080
3 changed files with 3 additions and 1 deletions

View File

@ -21,4 +21,4 @@ a1401a0bed89c182b69f0c7508282c1f ./scripts/pluginInstall.php
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
dec0ef21fb5bd704cd319e0a059a11ba ./skins/Narrow/css.php
7d827147dc8ede3d518b2cacae1d385b ./skins/Narrow/skin.html
a7c875a5c7d1d33cc2cde8c574c56729 ./skins/Narrow/skin.php
71d9d0268d18ec1eabf4c8f8bb4e8da1 ./skins/Narrow/skin.php

View File

@ -1070,9 +1070,11 @@ function displayCard($template) {
$ovr = str_replace(" ","    ",$ovr);
$ovr = markdown(strip_tags($ovr,"<br>"));
$ovr = str_replace(["<h1>","<h2>","<h3>"],"",$ovr);
$ovr = str_replace("\n","<br>",$ovr);
$Overview = str_replace("<br>"," ",$ovr);
$descClass= $RepositoryTemplate ? "cardDescriptionRepo" : "cardDescription";
$card .= "<div class='$descClass $backgroundClickable'><div class='cardDesc'>$Overview</div></div>";
if ( $RecommendedDate ) {