mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-22 02:58:11 +00:00
fix(bug): escape angularJS only if needed to keep legitimate directive
This commit is contained in:
1 parent
f0c23407bf
commit
41e2b7b1ab
2 files changed
+16
-5
No files matched your search
@@ -201,7 +201,7 @@
|
||||
|
||||
|
||||
|
||||
content = [[[self generateResponse] contentAsString] stringWithoutHTMLInjection: NO stripAngular:YES];
|
||||
content = [[[self generateResponse] contentAsString] stringWithoutHTMLInjection: NO stripAngular:NO];
|
||||
if ([self respondsToSelector:@selector(getException)]) {
|
||||
e = [self getException];
|
||||
}
|
||||
@@ -327,10 +327,12 @@
|
||||
|
||||
- (NSString *) filenameForDisplay
|
||||
{
|
||||
NSString *s;
|
||||
NSString *s, *cleanFilename;
|
||||
|
||||
if ((s = [self filename]) != nil)
|
||||
return s;
|
||||
if ((s = [self filename]) != nil) {
|
||||
cleanFilename = [s stringWithoutHTMLInjection: NO stripAngular:YES];
|
||||
return cleanFilename;
|
||||
}
|
||||
|
||||
s = [partPath componentsJoinedByString:@"-"];
|
||||
return ([s length] > 0)
|
||||
|
||||
Reference in new issue
Block a user