Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | autocomplete: remove duplicate code in search functions | Michael Vetter | 2021-03-11 | 1 | -54/+16 |
| | | | | | | _search_next and _search_prev where exactly the same except taking the nex/prev from the list. Use one function with a direction argument. | ||||
* | autocomplete: Use asprintf don't calculate length twice | Michael Vetter | 2021-03-11 | 1 | -4/+9 |
| | | | | | | | | Through asprintf() we can get rid of malloc() + sprintf(). Also we don't need to calculate the strlen() again since asprintf() returns the bytes printes. Only non UTF-8 characters. But that was true before already. | ||||
* | Remove duplicate code in autocomplete_param* | Michael Vetter | 2021-03-11 | 1 | -29/+22 |
| | | | | | autocomplete_param_with_func and -autocomplete_param_with_ac had lots of duplicate code. | ||||
* | Upload: Fix unused return | Thorben Günther | 2021-03-11 | 1 | -4/+9 |
| | |||||
* | Update to the newest version of XEP 0363 (HTTP Upload) | Maximilian Wuttke | 2021-03-11 | 2 | -0/+32 |
| | | | | | | | | | | | | | Main changes: 1. Attributes instead of tags 2. Read the optional <header> tags and send them in the HTTP PUT header: * Authorization * Cookie * Expires Co-authored-by: Martin Dosch <martin@mdosch.de> | ||||
* | Update copyright | Michael Vetter | 2021-01-08 | 2 | -2/+2 |
| | |||||
* | Fix deadlock on error before HTTP download has begun | William Wennerström | 2020-12-10 | 1 | -4/+6 |
| | |||||
* | Remove cmd_tiny, empty files and link nonce with IV | William Wennerström | 2020-12-07 | 3 | -2/+2 |
| | |||||
* | Add tests for format_call_external_argv | William Wennerström | 2020-12-07 | 1 | -2/+2 |
| | |||||
* | Fix bad order of parameters for url save | William Wennerström | 2020-12-07 | 1 | -1/+7 |
| | |||||
* | Rework url to filename | William Wennerström | 2020-12-06 | 2 | -8/+6 |
| | |||||
* | Move unique_filename_from_url functions to common | William Wennerström | 2020-12-04 | 2 | -21/+0 |
| | |||||
* | Refactor for threaded external executable for built-in download methods | William Wennerström | 2020-12-03 | 5 | -2/+45 |
| | |||||
* | Fix stubs and move some tests to http_common | William Wennerström | 2020-11-16 | 2 | -18/+12 |
| | |||||
* | Switch to g_strerror | William Wennerström | 2020-11-16 | 2 | -23/+19 |
| | |||||
* | Move common http tool code to http_common | William Wennerström | 2020-11-16 | 6 | -53/+154 |
| | |||||
* | Add I/O error handling and use filenames instead of file descriptors | William Wennerström | 2020-11-16 | 4 | -51/+87 |
| | |||||
* | Refactor OMEMO download into AESGCMDownload tool | William Wennerström | 2020-11-16 | 6 | -2/+221 |
| | |||||
* | Run make format on rebase | William Wennerström | 2020-11-16 | 4 | -57/+64 |
| | |||||
* | Remove unsafe Conent-Disposition inferring | William Wennerström | 2020-11-16 | 2 | -119/+19 |
| | |||||
* | Infer filename from content-disposition or URL | William Wennerström | 2020-11-16 | 2 | -7/+123 |
| | | | | | The Content-Disposition inferring is probably a bad idea security wise, so I am going to remove it. | ||||
* | Add http_download tool | William Wennerström | 2020-11-16 | 3 | -1/+287 |
| | |||||
* | Add guards for OMEMO | William Wennerström | 2020-11-16 | 1 | -1/+3 |
| | |||||
* | Move setup for AESGCM to omemo/crypto | William Wennerström | 2020-11-16 | 1 | -0/+2 |
| | |||||
* | Reformat HTTP get URL to AESGCM scheme | William Wennerström | 2020-11-16 | 2 | -30/+69 |
| | |||||
* | Refactor to use file stream | William Wennerström | 2020-11-16 | 2 | -24/+17 |
| | |||||
* | Initial /sendfile OMEMO encryption | William Wennerström | 2020-11-16 | 2 | -15/+15 |
| | |||||
* | Declare counter var inside loop | Michael Vetter | 2020-11-09 | 2 | -19/+10 |
| | | | | We require c99/gnu99 anyways. | ||||
* | parser.c: Use glib | Michael Vetter | 2020-07-23 | 1 | -4/+4 |
| | | | | | | | | We use malloc() to allcoate memory for the arguments. But later on in cmd_funcs.c we use g_strfreev() to free it. Let's use g_malloc() to allocate instead. Second change is to use g_malloc() and g_free() for a gchar. | ||||
* | Fix /correct quotation marks usage | Michael Vetter | 2020-07-23 | 2 | -0/+28 |
| | | | | | | | Add new `parse_args_as_one()` function to just use everything after the command as the argument. Fix https://github.com/profanity-im/profanity/issues/1404 | ||||
* | parser.c: Use helper function to reduce duplicate code | Michael Vetter | 2020-07-21 | 1 | -143/+50 |
| | | | | | | | | | | `parse_args()` and `parse_args_with_freetext()` shared a lot of common code. Let's have a helper function `_parse_args_helper()` for that. The `with_freetext` parameter will make it behave like `parse_args_with_freetext()`. In preparation for https://github.com/profanity-im/profanity/issues/1404 | ||||
* | parse_args(): Call g_free() once | Michael Vetter | 2020-07-21 | 1 | -3/+2 |
| | |||||
* | Use parse_args_with_freetext() for `/correct` | Michael Vetter | 2020-07-20 | 1 | -2/+2 |
| | | | | | | | | | | | | | This commit partly reverts 8f37afcd37ad8663ca36c13ca7fbc4a431119f73 Which was using a wrong approach to achieve this. It changed parse_args() to have a -1 for infinite parameters. But actually parse_args_with_freetext() should have been used exactly for this behaviour. Discovered when checking for https://github.com/profanity-im/profanity/issues/1404 | ||||
* | bookmark_ignore.c: use gchar instead of char | Michael Vetter | 2020-07-20 | 1 | -7/+7 |
| | |||||
* | Fix typo in comment | Michael Vetter | 2020-07-15 | 1 | -1/+1 |
| | |||||
* | Remove `/tiny` command | Michael Vetter | 2020-07-10 | 2 | -144/+0 |
| | | | | | | boothj5 gave his okay too. Fix https://github.com/profanity-im/profanity/issues/1370 | ||||
* | Apply coding style | Michael Vetter | 2020-07-07 | 12 | -225/+227 |
| | |||||
* | Revert "Apply coding style" | Michael Vetter | 2020-07-07 | 12 | -240/+238 |
| | | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems. | ||||
* | Apply coding style | Michael Vetter | 2020-07-07 | 12 | -238/+240 |
| | | | | Regards https://github.com/profanity-im/profanity/issues/1396 | ||||
* | Remove prefs_free_string() | Michael Vetter | 2020-07-02 | 1 | -1/+1 |
| | | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef | ||||
* | Add missed string.h | Dmitry Podgorny | 2020-06-24 | 1 | -0/+1 |
| | | | | strdup(3) requires string.h | ||||
* | Fix memleak in autocomplete_remove_older_than_max* | Michael Vetter | 2020-05-29 | 1 | -0/+1 |
| | |||||
* | urlopen: get last URL first | Michael Vetter | 2020-05-29 | 2 | -8/+24 |
| | | | | Fix https://github.com/profanity-im/profanity/issues/1348 | ||||
* | Save bookmark ignore list | Michael Vetter | 2020-05-25 | 1 | -0/+18 |
| | |||||
* | Add bookmark ignore add|remove | Michael Vetter | 2020-05-24 | 2 | -0/+14 |
| | | | | Regards https://github.com/profanity-im/profanity/issues/1115 | ||||
* | List ignored bookmarks | Michael Vetter | 2020-05-24 | 2 | -0/+7 |
| | | | | | | `/bookmarl ignore` lists the ignored bookmarks. Regards https://github.com/profanity-im/profanity/issues/1115 | ||||
* | Add bookmark ignore functionality for multiple accounts | Michael Vetter | 2020-05-24 | 2 | -23/+26 |
| | | | | | | | | | | | | | ``` cat ~/.local/share/profanity/bookmark_ignore [jubalh@iodoru.org] profanity@rooms.dismail.de=true [testuser@domain.org] testr@rooms.domain.org=true ``` Regards https://github.com/profanity-im/profanity/issues/1115 | ||||
* | PoC for bookmark ignore | Michael Vetter | 2020-05-24 | 2 | -0/+127 |
| | | | | | | | | | | ``` ~/.local/share/profanity % cat bookmark_ignore [ignore] profanity@rooms.dismail.de= ``` Regards https://github.com/profanity-im/profanity/issues/1115 | ||||
* | Only save max 20 urls | Michael Vetter | 2020-05-20 | 2 | -0/+14 |
| | |||||
* | Don't expose upload_processes | Michael Vetter | 2020-04-17 | 2 | -2/+24 |
| | | | | | | | | That's actually not good practise. Realized this when checking for multiple symbol definition in issue mentioned below. Regards https://github.com/profanity-im/profanity/issues/1314 |