diff options
| author | 2025-08-23 20:19:14 +0200 | |
|---|---|---|
| committer | 2025-08-23 20:19:14 +0200 | |
| commit | fee442dbf292856e6a8f6541cbe82e0daf721ac5 (patch) | |
| tree | 26c9c4e25628bd8ae037972644dd8ff882b9728b /httpd.c | |
| parent | Added 'collect_replies' info in the about screen. (diff) | |
| download | penes-snac2-fee442dbf292856e6a8f6541cbe82e0daf721ac5.tar.gz penes-snac2-fee442dbf292856e6a8f6541cbe82e0daf721ac5.tar.xz penes-snac2-fee442dbf292856e6a8f6541cbe82e0daf721ac5.zip | |
Ensure the tag is a string in server_get_handler().
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -226,7 +226,7 @@ int server_get_handler(xs_dict *req, const char *q_path, | |||
| 226 | const xs_dict *q_vars = xs_dict_get(req, "q_vars"); | 226 | const xs_dict *q_vars = xs_dict_get(req, "q_vars"); |
| 227 | const char *t = NULL; | 227 | const char *t = NULL; |
| 228 | 228 | ||
| 229 | if (xs_type(q_vars) == XSTYPE_DICT && (t = xs_dict_get(q_vars, "t"))) { | 229 | if (xs_type(q_vars) == XSTYPE_DICT && xs_is_string(t = xs_dict_get(q_vars, "t"))) { |
| 230 | /** search by tag **/ | 230 | /** search by tag **/ |
| 231 | int skip = 0; | 231 | int skip = 0; |
| 232 | int show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", | 232 | int show = xs_number_get(xs_dict_get_def(srv_config, "def_timeline_entries", |