MDL-22040 converting username to html entities before outputting
authorPetr Skoda <skodak@moodle.org>
Thu, 3 Jun 2010 08:18:38 +0000 (08:18 +0000)
committerPetr Skoda <skodak@moodle.org>
Thu, 3 Jun 2010 08:18:38 +0000 (08:18 +0000)
admin/mnet/access_control.php

index bb83a42..4dfd146 100644 (file)
@@ -179,7 +179,7 @@ if (!$acl) {
         }
         $deletecolumn = "<a href=\"?id={$aclrecord->id}&amp;action=delete&amp;sesskey=".sesskey()."\">"
                 . get_string('delete') . "</a>";
-        $table->data[] = array ($aclrecord->username, $aclrecord->mnet_host_id, $accesscolumn, $deletecolumn);
+        $table->data[] = array (s($aclrecord->username), $aclrecord->mnet_host_id, $accesscolumn, $deletecolumn);
     }
 }