workaround for broken form with empty action

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1883 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-01-26 10:16:05 +00:00
parent 24b842bafe
commit 444aed57e9
1 changed files with 5 additions and 0 deletions

View File

@ -378,6 +378,11 @@ public abstract class ExchangeSession {
if (logonForm != null) {
String logonMethodPath = logonForm.getAttributeByName("action");
// workaround for broken form with empty action
if (logonMethodPath != null && logonMethodPath.length() == 0) {
logonMethodPath = "/owa/auth.owa";
}
logonMethod = new PostMethod(getAbsoluteUri(initmethod, logonMethodPath));
// retrieve lost inputs attached to body