1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Merge pull request #3417 from newbthenewbd/patch-2

Fix language editor wrongly parsing HTML entities
This commit is contained in:
Cameron 2018-09-07 11:53:42 -07:00 committed by GitHub
commit adf4d67609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)