============
12 April 2016
-- Added check to see if a server is on the blacklist and to display a
+- Added check to see if a server is on the dangerous list and to display a
dialog confirming that data loss could happen if that server is used.
- Added support for OS X. Support begins from OS X 10.11.4. Use of XAB
on OS X before this version is unsupported.
preferences.h
sslcertstructs.h
structs.h
- svrblist.cpp
- svrblist.h
+ svrdlist.cpp
+ svrdlist.h
textprocessing.cpp
textprocessing.h
timers.cpp
-// svrblist.cpp - Server Blacklist subroutines.
+// svrdlist.cpp - Server Dangerous List subroutines.
//
// (c) 2012-2015 Xestia Software Development.
//
#include <wx/wx.h>
#include <wx/tokenzr.h>
-bool CheckBlacklist(wxString ServerAddress){
+bool CheckDangerousList(wxString serverAddress){
- // Check if the server address is on the blacklist.
+ // Check if the server address is on the dangerous list.
- wxString ServerBlacklist = "google.com";
- wxString BListHostname;
+ wxString dangerousServerList = "google.com";
+ wxString dangerousListHostname;
- wxStringTokenizer ServerBlacklistTkz(ServerBlacklist, wxT("|"));
+ wxStringTokenizer dangerousServerTokens(dangerousServerList, wxT("|"));
- while(ServerBlacklistTkz.HasMoreTokens()){
+ while(dangerousServerTokens.HasMoreTokens()){
- BListHostname = ServerBlacklistTkz.GetNextToken();
- if (BListHostname == ServerAddress){
- return TRUE;
+ dangerousListHostname = dangerousServerTokens.GetNextToken();
+ if (dangerousListHostname == serverAddress){
+ return true;
}
}
- return FALSE;
+ return false;
}
\ No newline at end of file
-// svrblist.h - Server Blacklist subroutines header.
+// svrdlist.h - Server Dangerous List subroutines header.
//
// (c) 2012-2015 Xestia Software Development.
//
#include <wx/wx.h>
-#ifndef COMMON_SVRBLIST_H
-#define COMMON_SVRBLIST_H
+#ifndef COMMON_SVRDLIST_H
+#define COMMON_SVRDLIST_H
-bool CheckBlacklist(wxString ServerAddress);
+bool CheckDangerousList(wxString serverAddress);
#endif
\ No newline at end of file
// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
#include "frmEditAccount.h"
+#include "common/svrdlist.h"
frmEditAccount::frmEditAccount( wxWindow* parent )
:
void frmEditAccount::UpdateSettings( wxCommandEvent& event )
{
- // Check if server address matches against the blacklist.
+ // Check if server address matches against the dangerous list.
// Bring up warning message if it does.
- if (CheckBlacklist(txtAddress->GetValue())){
+ if (CheckDangerousList(txtAddress->GetValue())){
int MessageBoxResult = wxMessageBox(_("The server with the address given does not support the CardDAV protocol properly and shouldn't be used.\n\nData loss is very likely.\n\nDo you still want to continue using this server?"), _("Server warning"), wxYES_NO, this);
#include "AppXestiaAddrBk.h"
#include <wx/fileconf.h>
#include "frmInvalidSSLCertificate.h"
-#include "common/svrblist.h"
#include "connobject/ConnectionObject.h"
#if defined(__WIN32__)
#endif
#include "common/dirs.h"
-#include "common/svrblist.h"
+#include "common/svrdlist.h"
#include "frmInvalidSSLCertificate.h"
DEFINE_EVENT_TYPE(UPDATERESULTS);
}
- // Check if server address matches against the blacklist.
+ // Check if server address matches against the dangerous list.
// Bring up warning message if it does.
- if (CheckBlacklist(txtServerAddress->GetValue())){
+ if (CheckDangerousList(txtServerAddress->GetValue())){
int MessageBoxResult = wxMessageBox(_("The server with the address given does not support the CardDAV protocol properly and shouldn't be used.\n\nData loss is very likely.\n\nDo you still want to continue using this server?"), _("Server warning"), wxYES_NO, this);
#include "../common/dirs.h"
#include "../common/filename.h"
#include "../common/mime.h"
-#include "../common/svrblist.h"
+#include "../common/svrdlist.h"
#include "../common/textprocessing.h"
static wxString AccountInput1 = "Example1";
}
-TEST(CommonFunctions, GivenTwoDomainNamesWhenCheckBlacklistIsCalledThenReturnsCorrectStatus)
+TEST(CommonFunctions, GivenTwoDomainNamesWhenCheckDangerousListIsCalledThenReturnsCorrectStatus)
{
- // Test that the blacklist is actually working.
+ // Test that the dangerous list is actually working.
// Given
// When
- domainStatus = CheckBlacklist("example.com");
+ domainStatus = CheckDangerousList("example.com");
// Then
// When
domainStatus = false;
- domainStatus = CheckBlacklist("google.com");
+ domainStatus = CheckDangerousList("google.com");
// Then