- client: entity-encode client-generated notices

(e.g. they may contain XML tags)


svn path=/trunk/boinc/; revision=22010
This commit is contained in:
David Anderson 2010-07-20 00:27:37 +00:00
parent 2179576c93
commit 7e060aa08a
2 changed files with 11 additions and 1 deletions

View File

@ -5259,3 +5259,11 @@ Rom 19 July 2010
win_build/installerv2/redist/Windows/x64/
boinccas.dll
boinccas95.dll
David 19 Jul 2010
- client: entity-encode client-generated notices
(e.g. they may contain XML tags)
client/
client_msgs.cpp

View File

@ -81,8 +81,10 @@ void MESSAGE_DESCS::insert(PROJECT* p, int priority, int now, char* message) {
#ifndef SIM
if (priority == MSG_USER_ALERT) {
char buf[1024];
xml_escape(message, buf, 1024);
NOTICE n;
n.description = message;
n.description = buf;
if (p) {
strcpy(n.project_name, p->get_project_name());
}