From bf06c418d4d5088f03793142b534296bb77de4e2 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Tue, 7 May 2024 16:43:35 +0200 Subject: [PATCH] Misc/Fixup * do not urlencode mysqli uris .. can't wait for this to cause issues again. * input[type=number] does not allow inputing dashes to signify negative numbers. Use input[type=text] instead and cast to int afterwards. --- includes/database.class.php | 2 +- template/pages/admin/screenshots.tpl.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/database.class.php b/includes/database.class.php index 42bc779e..3910c6ef 100644 --- a/includes/database.class.php +++ b/includes/database.class.php @@ -18,7 +18,7 @@ class DB private static function createConnectSyntax(&$options) { - return 'mysqli://'.urlencode($options['user']).':'.urlencode($options['pass']).'@'.$options['host'].'/'.$options['db']; + return 'mysqli://'.$options['user'].':'.$options['pass'].'@'.$options['host'].'/'.$options['db']; } public static function connect($idx) diff --git a/template/pages/admin/screenshots.tpl.php b/template/pages/admin/screenshots.tpl.php index 638099d1..de9527f8 100644 --- a/template/pages/admin/screenshots.tpl.php +++ b/template/pages/admin/screenshots.tpl.php @@ -31,8 +31,8 @@ endforeach; ?> - # - » Search by Page + # + » Search by Page