From 7f22566ecd3e2d80c6131d966600d9687d77340d Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 22 Oct 2018 19:07:50 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=98=EB=AA=BB=EB=90=9C=20=EA=B5=AC?= =?UTF-8?q?=EB=AC=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/gnuboard5.sql | 2 +- lib/pbkdf2.compat.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/gnuboard5.sql b/install/gnuboard5.sql index 4e1755264..d6aa5e1d0 100644 --- a/install/gnuboard5.sql +++ b/install/gnuboard5.sql @@ -544,7 +544,7 @@ CREATE TABLE IF NOT EXISTS `g5_point` ( `po_mb_point` int(11) NOT NULL default '0', `po_rel_table` varchar(20) NOT NULL default '', `po_rel_id` varchar(20) NOT NULL default '', - `po_rel_action` varchar(255) NOT NULL default '', + `po_rel_action` varchar(100) NOT NULL default '', PRIMARY KEY (`po_id`), KEY `index1` (`mb_id`,`po_rel_table`,`po_rel_id`,`po_rel_action`), KEY `index2` (`po_expire_date`) diff --git a/lib/pbkdf2.compat.php b/lib/pbkdf2.compat.php index 7aac1afd5..6bfada1a9 100644 --- a/lib/pbkdf2.compat.php +++ b/lib/pbkdf2.compat.php @@ -48,7 +48,7 @@ function create_hash($password, $force_compat = false) if (function_exists('mcrypt_create_iv')) { $salt = base64_encode(mcrypt_create_iv(PBKDF2_COMPAT_SALT_BYTES, MCRYPT_DEV_URANDOM)); - } elseif (file_exists('/dev/urandom') && $fp = @fopen('/dev/urandom', 'r')) { + } elseif (@file_exists('/dev/urandom') && $fp = @fopen('/dev/urandom', 'r')) { $salt = base64_encode(fread($fp, PBKDF2_COMPAT_SALT_BYTES)); } else { $salt = '';