aboutsummaryrefslogtreecommitdiff
path: root/uri.c (unfollow)
Commit message (Collapse)AuthorLines
2024-10-23uri: skip query/fragment parsing when dealing with file:// URIsDaniel Eklöf-0/+15
Also, ignore invalid query/fragments (i.e. if the fragment comes before the query). Closes #1840
2024-02-05util: add streq() function and use in place of strcmp(...) == 0Craig Barnes-3/+3
2023-02-12Tag a couple variables with UNUSED, to fix warnings with clang-15Daniel Eklöf-1/+1
Closes #1278
2022-01-13uri: move hex2nibble() to util.hDaniel Eklöf-23/+2
2021-06-19uri: hostname_is_localhost(): don’t crash if hostname == NULLDaniel Eklöf-3/+4
2021-01-23uri: switch to conservative maximum hostname lengthJan Beich-1/+1
Current maximum is provided by sysconf(_SC_HOST_NAME_MAX) instead. uri.c:269:20: error: use of undeclared identifier 'HOST_NAME_MAX' char this_host[HOST_NAME_MAX]; ^
2021-01-21uri: switch to conservative maximum hostname lengthJan Beich-1/+1
Current maximum is provided by sysconf(_SC_HOST_NAME_MAX) instead. uri.c:269:20: error: use of undeclared identifier 'HOST_NAME_MAX' char this_host[HOST_NAME_MAX]; ^
2021-01-21uri: rename nibbletohex() function to hex2nibble()Craig Barnes-3/+3
It converts a hex digit to a nibble, not the other way around.
2021-01-21uri: use nibble2hex() instead of isxdigit(3) to check valid hex digitsCraig Barnes-4/+6
2021-01-16Print stack trace on assert() failure or when calling fatal_error()Craig Barnes-1/+1
Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use.
2021-01-04uri: rename nibbletohex() function to hex2nibble()Craig Barnes-3/+3
It converts a hex digit to a nibble, not the other way around.
2021-01-04uri: use nibble2hex() instead of isxdigit(3) to check valid hex digitsCraig Barnes-4/+6
2020-10-28codespell: fix misspelled wordsDaniel Eklöf-1/+1
2020-10-28uri: add uri_parse() - new function extracts components from an URIDaniel Eklöf-0/+274
2020-10-10selection: use appropriate check for PRIMARY pasteSergey Nazaryev-271/+0
Assume it could be a copy-paste typo. We should check PRIMARY, not CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything to CLIPBOARD.