forked from cory/tildefriends
		
	js: Fix typo in /delete.
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user