(fix) escape the HTML content from the raw source before returning it

pull/95/merge
Ludovic Marcotte 2015-08-05 11:08:36 -04:00
parent 9dac8e55ff
commit 124ca5d8cf
1 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,8 @@
#import <NGObjWeb/WOContext.h>
#import <NGObjWeb/WOResponse.h>
#import <NGExtensions/NSString+misc.h>
#import <Foundation/NSString.h>
#import <SoObjects/Mailer/SOGoMailObject.h>
@ -39,7 +41,7 @@
response = [self responseWithStatus: 200];
[response setHeader: @"text/plain; charset=utf-8"
forKey: @"content-type"];
[response appendContentString: source];
[response appendContentString: [source stringByEscapingHTMLString]];
return response;
}