mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 23:37:15 +00:00
(fix) escape the HTML content from the raw source before returning it
This commit is contained in:
1 parent
9dac8e55ff
commit
124ca5d8cf
1 file changed
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user