Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/curl/trurl

a command line tool for URL parsing and manipulation.
https://github.com/curl/trurl

check valgrind function

1074fefb6b177185919ac5e9f520111f6bdf341c authored 10 months ago by Ehsan <[email protected]>
RELEASE: 0.10

756cfc96a961ba56749680bf99a14ed0fa11bd19 authored 10 months ago by Daniel Stenberg <[email protected]>
add tests cases from open issues

To verify use of null bytes in URLs

e19615dbb535913cc8c861326efc5abd3ea23db2 authored 10 months ago by Jacob Mealey <[email protected]>
clean up error handling in memdupdec to fix buffer overflows

Fixes #265
Fixes #266
Fixes #267
Closes #270

d80116114bf9a02270362e53be6dd3ff232ce4d3 authored 10 months ago by Jacob Mealey <[email protected]>
add --replace

Closes #261

f969627de6042c139bcfbcba5884c593cc6aacbe authored 10 months ago by Jacob Mealey <[email protected]>
trurl: support compiling with old versions of Visual Studio

- Define bool type and remove mixed declarations for old versions of
Visual Studio.

This supp...

1518a4b525d5cebfbee0ea41a6dddb8a0b185537 authored 11 months ago by Jay Satiro <[email protected]>
fix detecting imap in libcurl

Follow-up to 67d81bf931bd66edb9b65396d399a840482e2182

84f7a4a31d0cb374671c00a77ee646de1661a24e authored about 1 year ago by Viktor Szakats <[email protected]>
ci: build libcurl without http

For even smaller trurl binaries, and faster builds with libcurl built
without http support.

Als...

96b4f40ae35fcd2e43e56b5ff1b04310ddfe48b4 authored about 1 year ago by Viktor Szakats <[email protected]>
actually use the IMAP detection result to enable `imap-options`

Follow-up to 67d81bf931bd66edb9b65396d399a840482e2182

61db01dac0fdfabd033178694c9fcd34b2e8169a authored about 1 year ago by Viktor Szakats <[email protected]>
add `imap-options` feature detection

Some tests require this feature present in libcurl to pass.

67d81bf931bd66edb9b65396d399a840482e2182 authored about 1 year ago by Viktor Szakats <[email protected]>
simplify IDN detection

Make it use the feature bitmask instead of walking through the list of
feature strings.

This is...

71d039b8454a7dd7d4bc9cfb08efaa6d82fbc99f authored about 1 year ago by Viktor Szakats <[email protected]>
fix copy-paste error in punycode macro

Follow-up to bc67bb6056765b496580f661439fd3a9e6b26585

f6323141202d9076c9834601401920058081b3d8 authored about 1 year ago by Viktor Szakats <[email protected]>
ci: add Windows builds

Add automated Windows builds and tests.

Use curl-for-win with llvm + mingw64, and a minimal lib...

bc67bb6056765b496580f661439fd3a9e6b26585 authored about 1 year ago by Viktor Szakats <[email protected]>
move `{errorf,warnf}_low` common logic to a func

Ref: https://github.com/curl/trurl/pull/250#issuecomment-1808626757
Suggested-by: Jacob Mealey
C...

c31f64f07172d1fcd2498040ffa469af766e1547 authored about 1 year ago by Viktor Szakats <[email protected]>
enable more C compiler warnings and fix them

First I enabled all picky warnings from curl, then fixed all of them and
kept warning options en...

af2d476018038b3cd9c2607bc9b9db5372ac9011 authored about 1 year ago by Viktor Szakats <[email protected]>
avoid using variadic macro

This makes it possible to compile trurl with old C89 compilers without
having to pass `-std=gnu9...

17b61aeeb93c3db94017cdafc32dc1f0aa0c4925 authored about 1 year ago by Viktor Szakats <[email protected]>
Makefile: pass `LDFLAGS` first, then `LDLIBS`

Some `LDFLAGS` are positional and affect how `LDLIBS` are interpreted.
Not a hard rule, but perh...

6734b4cf01123080d2fe3b6b0bd3a419b8a286e7 authored about 1 year ago by Viktor Szakats <[email protected]>
Makefile: updates and fixes

- add `TRURL_IGNORE_CURL_CONFIG` to avoid reading `curl-config`.
This allows to specify curl b...

1cf986e9e33fdbbde577183604408d973fc95e67 authored about 1 year ago by Viktor Szakats <[email protected]>
Update version to 0.9

Although it's too late to hit the 0.9 release, update TRURL_VERSION_TXT to 0.9 so that builds fr...

eb54234256b3a123ff9f0d4dff37a59f8ec080f5 authored about 1 year ago by Michael Lass <[email protected]>
.reuse/dep5: add RELEASE-PROCEDURE.md

17375c95a583aff15514cf3c45abc4220a81e057 authored about 1 year ago by Daniel Stenberg <[email protected]>
RELEASE-PROCEDURE: how to do a trurl release

Maybe with a checklist we can avoid repeating some mistakes...

83f0e0a62b99e66ee66f90d12ecc1b66a19e711b authored about 1 year ago by Daniel Stenberg <[email protected]>
RELEASE-NOTES: prepared for 0.9

7506f382e5a44e69767ce7a48e9b20689cce2f0e authored about 1 year ago by Daniel Stenberg <[email protected]>
trurl: errorf improvements

Closes #235

a38eed1b9a6345b26596e28f21a46a7a5c1281a1 authored about 1 year ago by Jacob Mealey <[email protected]>
trurl: fix compiler warning after merge

364006d2e4b36b8e9f0b3d7958b4850c81d56a3f authored about 1 year ago by Daniel Stenberg <[email protected]>
trurl: use o for all option*

Closes #234

2f290ff6e4751606bc617828379a18591fa1b6e2 authored about 1 year ago by Jacob Mealey <[email protected]>
trurl: add --curl to only count as valid URLs supported by libcurl

825163722fdf9077027cfcbd24f9b4fba8b0e7ba authored about 1 year ago by Emanuele Torre <[email protected]>
tests: check for stderr presences, not exact text

Changes in libcurl 8.3.0 make some testcases fail due to different error
message wording. Adjust...

3819d80e5950f3ad7a3bf097b1897cb9d392c2d8 authored about 1 year ago by Michael Ablassmeier <[email protected]>
trurl: add --as-idn and punycode to IDN conversion

Closes #231

8c9132bed61bf08e0013a76e192ab29b677a1a7f authored about 1 year ago by Jacob Mealey <[email protected]>
trurl.1: missing comma added

Closes #238

b18bf4f67f3ce2e687427159662b0541ce0f534a authored over 1 year ago by 積丹尼 Dan Jacobson <[email protected]>
fixed many undetected memory leaks in trurl

dfd7db2e998364a748d7e088261223df519dfa52 authored over 1 year ago by Jacob Mealey <[email protected]>
separate stderr from stdout

a8852f6e8b911159b87a3d913e7f522583669bfa authored over 1 year ago by Ehsan <[email protected]>
trurl: accept \* as a trim name to trim a literal asterisk name

Added test case. Added docs.

Reported-by: Anselm Schüler
Fixes #227

183e2a64e269a2af57613d9fdf309d24d3b354d4 authored over 1 year ago by Daniel Stenberg <[email protected]>
winbuild: add copyright and license info

Closes #230

90fb3d666271324d0fc139efa518de0b95d8083c authored over 1 year ago by Daniel Stenberg <[email protected]>
Add vs2022 project files

e849a18e4268aeb567af8bafe9aa29462184f1bf authored over 1 year ago by Krishean Draconis <[email protected]>
trurl: format null as \u0000 for --json

Closes #214

268c7789a73250c23231d398d76fd23400c7868b authored over 1 year ago by Jacob Mealey <[email protected]>
trurl: run --trim query before --append query

Before this patch there was not a way to add a query parameter to a URL,
removing the previous v...

1e83ccc488f5d8556f30ca7aa68a69a761b502a4 authored over 1 year ago by Emanuele Torre <[email protected]>
README: fix the --json example output

9cac0f554a9923d55ff76cf33514128c23525618 authored over 1 year ago by Daniel Stenberg <[email protected]>
GHA: add a REUSE job

This job scans the git repository and verifies that all files have
identifiable license and copy...

b985d2e24540dd591c44d412df240dc626c2673f authored over 1 year ago by Daniel Stenberg <[email protected]>
RELEASE-NOTES: 0.8

1cd06db50dcf78d68c32c09bef488ade68234018 authored over 1 year ago by Daniel Stenberg <[email protected]>
Fix indentation

Suggested-by: yamllint

6cbe7e9fbed2f007c3f098f1ff94efcfe63ea47d authored over 1 year ago by Paul Wise <[email protected]>
Remove trailing whitespace

Suggested-by: yamllint, nano & git

3bf33b8b2aef3dd6769cfe4090f981661457d2ee authored over 1 year ago by Paul Wise <[email protected]>
Remove unnecessary pointer check

The check is already performed before entering the scope.

Suggested-by: cppcheck

a9b8298efbceecb14a847e5991b8d46446f914e1 authored over 1 year ago by Paul Wise <[email protected]>
Only check trurl.c for spelling errors once

Fixes: commit fc75c4184642bfbbd0bb5232d7dc518aaf823673

dbebafd33c4a0ddfc43057598276ef94c070d34d authored over 1 year ago by Paul Wise <[email protected]>
Avoid using the name of a function for a variable within that function

Suggested-by: cppcheck

a530cb5add182479dbaa7ded85dd741b73fb45ea authored over 1 year ago by Paul Wise <[email protected]>
Reduce scope of some variables

Suggested-by: cppcheck

b772d7a0b4cfe075aea6975e1d752dafd597bdb5 authored over 1 year ago by Paul Wise <[email protected]>
Remove an unused import

Suggested-by: pyflakes & vulture

211112b0050f41cd87236ccfea93795f9a33f3c2 authored over 1 year ago by Paul Wise <[email protected]>
Fix typos

Suggested-by: anorack, codespell, spellintian

45ccdd5ebe089ab382086c0379db7be9160a7ed8 authored over 1 year ago by Paul Wise <[email protected]>
Modernise Perl file open calls

Use regular variables and separate file open modes from filenames.

Suggested-by: perlcritic

f2784a9240f47ee28a845b638a5379cde3729568 authored over 1 year ago by Paul Wise <[email protected]>
Remove unused struct member

Suggested-by: cppcheck

d41dcca18571bd0f4d6abdaf3490ed97fe8f5968 authored over 1 year ago by Paul Wise <[email protected]>
Remove whitespace from arrays

Suggested-by: yamllint

40b4b8e282fc3f67e930f0c9209c1bb898b4738a authored over 1 year ago by Paul Wise <[email protected]>
Split up a long line

Suggested-by: pycodestyle

8c8bf7248416b10980c54e94f482aec11a43b381 authored over 1 year ago by Paul Wise <[email protected]>
CI: add job to run codespell

Fix typo in RELEASE-NOTES

Closes #220

fc75c4184642bfbbd0bb5232d7dc518aaf823673 authored over 1 year ago by Michael Ablassmeier <[email protected]>
Update comment line in test.py

e2e572a8eb0f7e613f6a762431e0aea91d0f21c1 authored over 1 year ago by Krishean Draconis <[email protected]>
--json/--get: .[].parts and {component} should be urldecoded not encoded

I accidentally implemented {:component} backwards in 5bc344a

This also caused URL parts in the ...

0fb60d09630c136c4bc469b37038a06f0fccb666 authored over 1 year ago by Emanuele Torre <[email protected]>
trurl: add --urlencode

One of the reason we split URL parts into a separate object was to allow
users to apply transfor...

8f330c41147b9f1e516aa9f85aa32926279e7f4e authored over 1 year ago by Emanuele Torre <[email protected]>
Makefile: Allow CFLAGS to be appendable

Useful for consistency when building via a package system.

75fec313d9384e32425c85ecab7fe4296ef1c890 authored over 1 year ago by Sevan Janiyan <[email protected]>
Makefile: be explicit in C standard to use

anonymous variadic macros were introduced in C99
Allows building with older compilers which defa...

2a9163a4ef4b93126e921fdeff5df8d5c0811e6b authored over 1 year ago by Sevan Janiyan <[email protected]>
tests: use empty file instead of /dev/null

/dev/null won't work in non-cygwin windows builds.

Fixes #213

e95f3055e15d6f5f325b6168038148056d93e4e1 authored over 1 year ago by Emanuele Torre <[email protected]>
fix typos in manpage

41472fb3abf6524fb27435bd91925eb0e54c1c30 authored over 1 year ago by Michael Ablassmeier <[email protected]>
ci: don't unnecessarily install "packaging" on macOS

The "packaging" python dependency has been removed with 3129d40

c1bd6b8e30b428ee79cccdcffa2d87fa33b95dff authored over 1 year ago by Emanuele Torre <[email protected]>
RELEASE-NOTES: 0.7

72a0d9a3ff956110c3ae04c9b352c0032b95653e authored over 1 year ago by Daniel Stenberg <[email protected]>
--json: print empty arrays neatly

Now trurl outputs
[]
instead of
[

]
When no URLs are handled. (e.g. when it reads an empt...

95b7b0c0ea413ad1f6b9836e43b1465fe51efd51 authored over 1 year ago by Emanuele Torre <[email protected]>
Revert "remove url from --set"

This reverts commit f44a58621db0926fc8b4d5e11f94ab1d190bd7ee.

Since "url" is no longer in the v...

79228d586891bfa347be6bca779c7e9da3116191 authored over 1 year ago by Emanuele Torre <[email protected]>
trurl: restructure JSON, add --default-port, --keep-port, --punycode

This patch restructures the JSON output with the following format:

{
"url": // same value...

5bc344a704dad9413b9ff2406c163fb471f8e7be authored over 1 year ago by Emanuele Torre <[email protected]>
trurl: fix BRACEELSE in VERIFY() macro not detected by checksrc.pl

33674fe6bbaca44fe56ab431e006462e82a69843 authored over 1 year ago by Emanuele Torre <[email protected]>
trurl.1: document the new options, --get modifiers, and JSON format

I also added references to curl_url_set(3) and curl_url_get(3).

"-s set=" was already not docum...

6d5496c8c597db0f0119b5dfb25b24caf61b6607 authored over 1 year ago by Emanuele Torre <[email protected]>
trurl: remove strcmp(nurl,ourl) in revalidation code

I have noticed that that breaks revalidation for URLs parsed with
CURLU_ALLOW_SPACE. Let's just ...

0f3215935d9775ce72c3aad40f6a7e36b9c2f980 authored over 1 year ago by Emanuele Torre <[email protected]>
tests.json: update test expectations

Since now trurl always uses CURLU_URLENCODE when parsing URLs, and
before curl/curl@4cfa5bcc (cu...

c9923db1070091b5558d13f197060971f7f73d87 authored over 1 year ago by Emanuele Torre <[email protected]>
Use DESTDIR only during install target

At least on FreeBSD ports framework, DESTDIR is only defined during
install stages, what makes i...

0eab9671822d560be48135aab85286e7990b5f0e authored over 1 year ago by Renato Botelho <[email protected]>
Use feature list for tests

This commit adds a list of features to the output of --version
test.py and tests.json are update...

3129d40956e616172c253dc938b9105a036e1685 authored over 1 year ago by Jacob Mealey <[email protected]>
remove url from --set

Closes #202

f44a58621db0926fc8b4d5e11f94ab1d190bd7ee authored over 1 year ago by Jacob Mealey <[email protected]>
test.py: allow specifying boolean expectaction

This allows specifying expectaction of something or nothing.

"returncode": false
checks for...

3ee34fe3523cefe1542c36b817fd486fa867ca42 authored over 1 year ago by Emanuele Torre <[email protected]>
trurl: use curl_url_cleanup() insted of curl_free()

Fixes occasional memory leaks

d766ceb63017e725a3d856a1460a8d6f3ecfb67c authored over 1 year ago by Emanuele Torre <[email protected]>
--redirect: don't silently ignore failed redirections.

If a redirection fails, report the failure to stderr, and go to the next
URL, or abort if runnin...

107548462670f31bd85752fc562a7a0d64042c9c authored over 1 year ago by Emanuele Torre <[email protected]>
trurl: add a new --no-guess-scheme option to disable scheme guessing

Ref: #194

8da611fe2afa3678ad8e6e605e5934fa193db64f authored over 1 year ago by Emanuele Torre <[email protected]>
trurl: add a new --no-guess-scheme option to disable scheme guessing

Ref: #194

6909ceeb99c69e0269b24632ac8d4becc9cd155b authored over 1 year ago by Emanuele Torre <[email protected]>
trurl.1: various improvements

Remove trailing spaces from some lines, and fix some typos.

Capitalise ASCII, and URL where it ...

562d97c273bcfca278d9aef635353db18396e2a3 authored over 1 year ago by Emanuele Torre <[email protected]>
trurl: fix URL handle leak for invalid URLs

Before this patch, when trurl encountered a invalid URL, it skipped it
without freeing the URL h...

4588610b5f55a077d991c215d5d720979de8757f authored over 1 year ago by Emanuele Torre <[email protected]>
trurl.c: fix minor code style nits

Imported checksrc.pl as of upstream commit 9ce7eee070 from curl.

Reported-y: @emanuele6
Fixes #192

084499d6859006099784d2a881a47e04144a7e21 authored over 1 year ago by Daniel Stenberg <[email protected]>
trurl: refuse setting same component in --set as --iterate

Add test to verify

Fixes #190
Reported-by: @emanuele6

308fba4c4b7b24ca968a727c4d1695e73e0ffc62 authored over 1 year ago by Daniel Stenberg <[email protected]>
trurl: fix variable ‘punycode’ set but not used

On systems without punycode support

cab4dfe0c7200237a7377b6d696accd033cdf878 authored over 1 year ago by Daniel Stenberg <[email protected]>
makefile: use -Wshadow and -Werror by default

Ref: #186

b22b67e1a6e026d0ef906cdec69cd247ad151dce authored over 1 year ago by Daniel Stenberg <[email protected]>
declaration of 'i' shadow a previous local

a1501616adf3941da7fd113b74cea047dd316921 authored over 1 year ago by Ehsan <[email protected]>
CONTRIBUTING.md: fix typo

Closes #185

c92a91c81aca5463fd2cddb5b467825032536d8f authored over 1 year ago by Michael Ablassmeier <[email protected]>
*usedarg set with true instead of 1

40fadf9a02926f6df0fc8a76f34cce38a3343af4 authored over 1 year ago by Jacob Mealey <[email protected]>
makefile.yml: rename the jobs

shorter and more to the point

e8abce61d97fc0c427f867f4d69e8a6cf08928c6 authored over 1 year ago by Daniel Stenberg <[email protected]>
Create CONTRIBUTING.md

fb1f3a0c3bc5e77a1a5dcf91cfa7d57ce97db35e authored over 1 year ago by Jacob Mealey <[email protected]>
THANKS: synced with repo

470bcaa32697d92550f0d8180137d60822352a7f authored over 1 year ago by Daniel Stenberg <[email protected]>
trurl.1: add an example using --iterate

1ff4be085600d04002b75c2b1566a84cd3073ff0 authored over 1 year ago by Daniel Stenberg <[email protected]>
trurl.1: fix typo

99a86a1e7d2c9e4909e50b7b7308215c559a8100 authored over 1 year ago by Daniel Stenberg <[email protected]>
trurl.1: provide a better/new --json example

6cccb3fafa06eba48969fb9a40a40cf69062a697 authored over 1 year ago by Daniel Stenberg <[email protected]>
document the "raw_port" JSON key

Follow-up from e5c57ff8e88e

cf18d4e813a93c374f61d49ca3b40c8a30234923 authored over 1 year ago by Daniel Stenberg <[email protected]>
add support for {raw:port} and raw_port in json output

Add support for differentiating between default ports and explicitly
defined ports.

Docs and te...

e5c57ff8e88e2a4b47dced81aa3182bb856ef44a authored over 1 year ago by Jacob Mealey <[email protected]>
document the JSON output format in the man page

Also added a test for --json that outputs all components

c167118d55fc1acf50549e6d35f8eb697997d4a7 authored over 1 year ago by Daniel Stenberg <[email protected]>
Makefile: make test-memory depend on $TARGET

Since we need an actual compiled trurl to run the valgrind tests, make
test-memory depend on $(T...

0d61349c14204fc06d2dc3532939c027843e7877 authored over 1 year ago by Enno Tensing <[email protected]>
send -h output to stdout, not stderr

Closes #173

952ba65370ac774452f44b4663257b063bfb99ae authored over 1 year ago by Daniel Stenberg <[email protected]>
align the -h output nicer

Make the long options align under each other. Gives the list a "calmer"
look I think.

Closes #173

da3d6d381a269e1e5192dc8bac05eaef806a4cae authored over 1 year ago by Daniel Stenberg <[email protected]>
Improve README

68fde19214f996e00b74f0dd89f1e2face6ef5f3 authored over 1 year ago by Gustavo Costa <[email protected]>
--help returns 0 instead of 1

0dbecdd2cc63a6e8e5734107017536d1e12c6c54 authored over 1 year ago by Jacob Mealey <[email protected]>
release: 0.6

825c90102bd30e8255a8b52d237a3cec851a4b9f authored over 1 year ago by Daniel Stenberg <[email protected]>