From d99abcaefce3fc98c25862a7dd7954aec145fb4b Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Wed, 4 Mar 2015 21:39:44 +0100 Subject: [PATCH] * Closes #95. Accounts' password length set to 255 characters --- inc/account.class.php | 2 +- inc/dbstructure.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/account.class.php b/inc/account.class.php index f22ed7bb..97c370c9 100644 --- a/inc/account.class.php +++ b/inc/account.class.php @@ -540,7 +540,7 @@ class SP_Account . "account_name = '" . DB::escape($this->accountName) . "'," . "account_login = '" . DB::escape($this->accountLogin) . "'," . "account_url = '" . DB::escape($this->accountUrl) . "'," - . "account_pass = '$this->accountPass'," + . "account_pass = '" . DB::escape($this->accountPass). "'," . "account_IV = '" . DB::escape($this->accountIV) . "'," . "account_notes = '" . DB::escape($this->accountNotes) . "'," . "account_dateAdd = NOW()," diff --git a/inc/dbstructure.sql b/inc/dbstructure.sql index 6ffc6049..16f142e0 100644 --- a/inc/dbstructure.sql +++ b/inc/dbstructure.sql @@ -63,7 +63,7 @@ CREATE TABLE `accHistory` ( `acchistory_categoryId` tinyint(3) unsigned NOT NULL, `acchistory_login` varchar(50) NOT NULL, `acchistory_url` varchar(255) DEFAULT NULL, - `acchistory_pass` varbinary(32) NOT NULL, + `acchistory_pass` varbinary(255) NOT NULL, `acchistory_IV` varbinary(32) NOT NULL, `acchistory_notes` text NOT NULL, `acchistory_countView` int(10) unsigned NOT NULL DEFAULT '0', @@ -116,7 +116,7 @@ CREATE TABLE `accounts` ( `account_categoryId` tinyint(3) unsigned NOT NULL, `account_login` VARCHAR(50) DEFAULT NULL, `account_url` varchar(255) DEFAULT NULL, - `account_pass` varbinary(32) NOT NULL, + `account_pass` varbinary(255) NOT NULL, `account_IV` varbinary(32) NOT NULL, `account_notes` text, `account_countView` int(10) unsigned NOT NULL DEFAULT '0',