commit fee442d
grunfink
·
2025-08-23 18:19:14 +0000 UTC
parent 3611f42
Ensure the tag is a string in server_get_handler().
1 files changed,
+1,
-1
M
httpd.c
M
httpd.c
+1,
-1
1@@ -226,7 +226,7 @@ int server_get_handler(xs_dict *req, const char *q_path,
2 const xs_dict *q_vars = xs_dict_get(req, "q_vars");
3 const char *t = NULL;
4
5- if (xs_type(q_vars) == XSTYPE_DICT && (t = xs_dict_get(q_vars, "t"))) {
6+ if (xs_type(q_vars) == XSTYPE_DICT && xs_is_string(t = xs_dict_get(q_vars, "t"))) {
7 /** search by tag **/
8 int skip = 0;
9 int show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries",