mirror of https://github.com/BOINC/boinc.git
Now sanitizes the user response fields before displaying them in summary form.
svn path=/trunk/boinc/; revision=1713
This commit is contained in:
parent
9944eb6e09
commit
298e8d068c
|
@ -2,6 +2,7 @@
|
|||
|
||||
require_once("project_specific/project.inc");
|
||||
require_once("profile.inc");
|
||||
require_once("sanitize_html.inc");
|
||||
|
||||
// Generates the html files which comprise the photo gallery.
|
||||
// $room: which gallery to generate (user, computer).
|
||||
|
@ -301,7 +302,7 @@ function get_profile_summary($userid) {
|
|||
|
||||
if (strlen($row['response1']) != 0) {
|
||||
|
||||
$description = "(\"" . substr($row['response1'], 0, MAX_DESC_LENGTH);
|
||||
$description = "(\"" . sanitize_html(substr($row['response1'], 0, MAX_DESC_LENGTH));
|
||||
if (strlen($row['response1']) >= MAX_DESC_LENGTH) {
|
||||
$description = $description . "...";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue