mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-17 07:40:25 +00:00
Check if env is empty string (#748)
* Check if env is empty string * Fix ci error * Check if env is empty string * Fix security issue for jwt --------- Co-authored-by: Heran Yang <heran.yang@seafile.com>
This commit is contained in:
@@ -41,7 +41,7 @@ int
|
||||
ccnet_group_manager_prepare (CcnetGroupManager *manager)
|
||||
{
|
||||
const char *table_name = g_getenv("SEAFILE_MYSQL_DB_GROUP_TABLE_NAME");
|
||||
if (!table_name)
|
||||
if (!table_name || g_strcmp0 (table_name, "") == 0)
|
||||
manager->priv->table_name = g_strdup ("Group");
|
||||
else
|
||||
manager->priv->table_name = g_strdup (table_name);
|
||||
|
Reference in New Issue
Block a user