mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-03 20:38:50 +00:00
(fix) avoid trying to parse empty request (fixes #3969)
This commit is contained in:
@@ -3992,14 +3992,15 @@ void handle_eas_terminate(int signum)
|
||||
}
|
||||
|
||||
xml = [NSString stringWithFormat: @"<?xml version=\"1.0\"?><!DOCTYPE ActiveSync PUBLIC \"-//MICROSOFT//DTD ActiveSync//EN\" \"http://www.microsoft.com/\"><%@ xmlns=\"ComposeMail:\"><SaveInSentItems/><MIME>%@</MIME></%@>", cmdName, [s stringByEncodingBase64], cmdName];
|
||||
|
||||
|
||||
|
||||
d = [xml dataUsingEncoding: NSASCIIStringEncoding];
|
||||
}
|
||||
else
|
||||
{
|
||||
d = [[theRequest content] wbxml2xml];
|
||||
// Handle empty Ping request, no need to try decoding the WBXML blob here
|
||||
if ([[theRequest content] length])
|
||||
d = [[theRequest content] wbxml2xml];
|
||||
else
|
||||
d = nil;
|
||||
}
|
||||
|
||||
documentElement = nil;
|
||||
|
||||
Reference in New Issue
Block a user