forked from science-ation/science-ation
Properly escape the email name in the javascript function, and htmlspecialchars the name in the output
This commit is contained in:
parent
0f746fb914
commit
1768fffb2b
@ -605,7 +605,7 @@ case "email_get_list":
|
||||
if($r->name) $name=$r->name;
|
||||
else $name=i18n("no email name specified");
|
||||
|
||||
echo "<tr><td><a href=\"#\" onclick=\"return opencommunicationeditor('$r->val',$r->id,$fcid)\">$name</a></td>";
|
||||
echo "<tr><td><a href=\"#\" onclick=\"return opencommunicationeditor('".addslashes($r->val)."',$r->id,$fcid)\">",htmlspecialchars($name)."</a></td>";
|
||||
echo "<td>$r->type</td>";
|
||||
|
||||
echo " <td align=\"center\">";
|
||||
|
Loading…
Reference in New Issue
Block a user