mirror of
https://github.com/e107inc/e107.git
synced 2025-07-11 18:16:21 +02:00
Merge pull request #3417 from newbthenewbd/patch-2
Fix language editor wrongly parsing HTML entities
This commit is contained in:
@ -1849,7 +1849,7 @@ class lancheck
|
|||||||
<td style='width:40%;vertical-align:top'>".htmlentities(str_replace("ndef++","",$trans['orig'][$sk])) ."</td>";
|
<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 .= "<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 .= ($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>" : "";
|
$text .= ($writable) ? "</textarea>" : "";
|
||||||
//echo "orig --> ".$trans['orig'][$sk]."<br />";
|
//echo "orig --> ".$trans['orig'][$sk]."<br />";
|
||||||
if (strpos($trans['orig'][$sk],"ndef++") !== False)
|
if (strpos($trans['orig'][$sk],"ndef++") !== False)
|
||||||
|
Reference in New Issue
Block a user