From 612d6a2ea6243edfd05ddd9d8022d134419fb7cc Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 19 Oct 2021 04:07:09 +0000 Subject: [PATCH] fixed a bug in LoginModel::formatString() --- codepot/src/codepot/models/loginmodel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codepot/src/codepot/models/loginmodel.php b/codepot/src/codepot/models/loginmodel.php index 669f70ef..fd3b0bea 100644 --- a/codepot/src/codepot/models/loginmodel.php +++ b/codepot/src/codepot/models/loginmodel.php @@ -125,8 +125,8 @@ class LoginModel extends CI_Model function formatString ($fmt, $userid, $password) { - $regexs = array('${userid}', '${password}'); + $needles = array('${userid}', '${password}'); $repl = array($userid, $password); - return str_replace($regexs, $repl, $fmt); + return str_replace($needles, $repl, $fmt); } }