Compare commits

..

No commits in common. "01b8c209de5b3ec6e00f8431053fba3e154dce4c" and "02accabb4ac66557491101fd5276252e5369b3e5" have entirely different histories.

3 changed files with 2 additions and 3 deletions

View File

@ -1107,7 +1107,7 @@ static void _httpd_endpoint_delete_work(tf_ssb_t* ssb, void* user_data)
size_t length = strlen(user_string); size_t length = strlen(user_string);
if (request->path && request->path[0] == '/' && request->path[1] == '~' && if (request->path && request->path[0] == '/' && request->path[1] == '~' &&
(strncmp(request->path + 2, user_string, length) == 0 || (strncmp(request->path + 2, user_string, length) == 0 ||
(strncmp(request->path + 2, "core", strlen("core")) == 0 && tf_ssb_db_user_has_permission(ssb, user_string, "administration"))) && (strncmp(request->path + 2, "core", strlen("core") == 0 && tf_ssb_db_user_has_permission(ssb, user_string, "administration")))) &&
request->path[2 + length] == '/') request->path[2 + length] == '/')
{ {
char* app_name = tf_strdup(request->path + 2 + length + 1); char* app_name = tf_strdup(request->path + 2 + length + 1);

View File

@ -21,7 +21,7 @@ typedef struct _tf_ssb_connections_t
static void _tf_ssb_connections_changed_callback(tf_ssb_t* ssb, tf_ssb_change_t change, tf_ssb_connection_t* connection, void* user_data) static void _tf_ssb_connections_changed_callback(tf_ssb_t* ssb, tf_ssb_change_t change, tf_ssb_connection_t* connection, void* user_data)
{ {
if (!connection || tf_ssb_is_shutting_down(ssb)) if (!connection)
{ {
return; return;
} }

View File

@ -1869,7 +1869,6 @@ void tf_task_destroy(tf_task_t* task)
{ {
JSValue global = JS_GetGlobalObject(task->_context); JSValue global = JS_GetGlobalObject(task->_context);
JS_SetPropertyStr(task->_context, global, "httpd", JS_UNDEFINED); JS_SetPropertyStr(task->_context, global, "httpd", JS_UNDEFINED);
JS_SetPropertyStr(task->_context, global, "gProcesses", JS_NewObject(task->_context));
JS_FreeValue(task->_context, global); JS_FreeValue(task->_context, global);
} }