From 9876416a658caef37dd5314a9915af6283611466 Mon Sep 17 00:00:00 2001 From: Dygland Date: Fri, 25 Apr 2025 11:04:20 +0200 Subject: [PATCH] Remove quoutes around database flags Removed the single qoutes around {{ flag }} => {{ value }} since the config does not work with them in place. According to https://github.com/MISP/MISP/blob/2.5/app/Config/database.default.php the database flags should be without quoutes. Note that MISP2.5 requres the flag 'flags' => [ PDO::ATTR_STRINGIFY_FETCHES => true ] to have the API work as expected so this might be hardcoded in? I dont know if 2.4 compability is still needed. --- Config/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Config/database.php b/Config/database.php index a093c8b..84778ac 100644 --- a/Config/database.php +++ b/Config/database.php @@ -22,7 +22,7 @@ class DATABASE_CONFIG { {% if MYSQL_FLAGS %} 'flags' => [ {% for flag, value in MYSQL_FLAGS.items() %} - '{{ flag }}' => '{{ value }}', + {{ flag }} => {{ value }}, {% endfor %} ] {% endif %}