1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Fix language editor wrongly parsing HTML entities

This commit is contained in:
Newb I the Newbd
2018-09-05 01:38:36 +02:00
committed by GitHub
parent 00e2663162
commit 26820c5ddf

View File

@@ -1849,7 +1849,7 @@ class lancheck
<td style='width:40%;vertical-align:top'>".htmlentities(str_replace("ndef++","",$trans['orig'][$sk])) ."</td>";
$text .= "<td class='forumheader3' style='width:50%;vertical-align:top'>";
$text .= ($writable) ? "<textarea class='input-xxlarge' name='newlang[]' rows='$rowamount' cols='45' style='height:100%'>" : "";
$text .= str_replace("ndef++","",$trans['tran'][$sk]);
$text .= htmlentities(str_replace("ndef++","",$trans['tran'][$sk]));
$text .= ($writable) ? "</textarea>" : "";
//echo "orig --> ".$trans['orig'][$sk]."<br />";
if (strpos($trans['orig'][$sk],"ndef++") !== False)