Disallow markdown in card descriptions.

This commit is contained in:
Squidly271 2022-01-10 08:33:23 -05:00
parent 80ae182080
commit 79c87b5226
4 changed files with 4 additions and 5 deletions

View File

@ -19,6 +19,6 @@ a1401a0bed89c182b69f0c7508282c1f ./scripts/pluginInstall.php
36556fb8fcd17118600d3d226c50567d ./scripts/showStatistics.php
4425f8fd4ef662a7dc65cee01de3e419 ./scripts/updatePLG.sh
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
dec0ef21fb5bd704cd319e0a059a11ba ./skins/Narrow/css.php
b9af1449b8201afb0866cc53f279cd63 ./skins/Narrow/css.php
7d827147dc8ede3d518b2cacae1d385b ./skins/Narrow/skin.html
71d9d0268d18ec1eabf4c8f8bb4e8da1 ./skins/Narrow/skin.php
028147b7da9a8de60ffa802949dd0754 ./skins/Narrow/skin.php

View File

@ -239,7 +239,7 @@ a.ca_repoPopup:hover{color:<?=$unRaid66color?>;}
.changelogMessage{font-size:1rem;line-height:1rem;margin-top:1rem;}
.cardCategory{font-size:1rem;margin-left:0.75rem;}
.cardDescription{cursor: pointer;display: block;position: relative;top:0.5rem;max-height: 7rem;overflow: hidden;}
.cardDesc{display:inline-block;max-height:7rem;overflow:hidden;}
.cardDesc{display:inline-block;max-height:6rem;overflow:hidden;}
.card_readmore{color:<?=$unRaid66color?>;}
.cardWarning{font-size:1.5rem;color:#bdbd14;}
#Category{font-size:2rem;margin-bottom:0.5rem;}

View File

@ -1070,10 +1070,9 @@ function displayCard($template) {
$ovr = str_replace(" ","&nbsp;&nbsp;&nbsp;&nbsp;",$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);
$Overview = strip_tags(str_replace("<br>"," ",$ovr));
$descClass= $RepositoryTemplate ? "cardDescriptionRepo" : "cardDescription";
$card .= "<div class='$descClass $backgroundClickable'><div class='cardDesc'>$Overview</div></div>";