ringabout
d31cce557b
more strictdef fixes for stdlibs ( #24535 )
2024-12-13 19:06:43 +01:00
ringabout
95a7695810
documentation and comments use HTTPS when possible ( #24264 )
2024-10-08 21:50:35 +02:00
Federico Ceratto
9df8ca0d81
Add URI parsing warning ( #21547 )
...
Related to CVE-2021-41259
https://github.com/nim-lang/security/security/advisories/GHSA-3gg2-rw3q-qwgc
https://github.com/nim-lang/Nim/pull/19128#issuecomment-1181944367
2023-03-20 18:51:58 +01:00
Juan Carlos
4503fa5422
Uri.isIpv6 exported ( #20736 )
...
* Export Uri.isIpv6
* Export Uri.isIpv6
2022-11-03 09:48:51 +01:00
Juan Carlos
2f6e06d224
Improve dollar ( #20672 )
...
* Improve dollar for uri
* Refactor
* .
* .
* verde
* optimize
* https://github.com/nim-lang/Nim/pull/20672#issuecomment-1295440246 [skip ci]
* https://github.com/nim-lang/Nim/pull/20670#issuecomment-1295937393
* ci
* Update lib/pure/uri.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-10-31 15:37:09 -04:00
Juan Carlos
229f146280
Improve getDataUri ( #20670 )
...
* Improve getDataUri
* Restart ci
* https://github.com/nim-lang/Nim/pull/20670#issuecomment-1295937393
2022-10-31 15:34:17 -04:00
ringabout
e8ae2dc90b
bootstrap the compiler with nimPreviewSlimSystem ( #20176 )
...
* bootstrap the compiler with nimPreviewSlimSystem
* threads
2022-08-09 16:32:29 +08:00
Alfred Morgan
15f0b48676
Zectbumo fixes 19824 ( #19825 )
...
* borrowed `$` to make Time string friendly
* added sep character parameter
* Revert "added sep character parameter"
This reverts commit 45f4b019a4 .
* added sep character parameter
* Revert "borrowed `$` to make Time string friendly"
This reverts commit 10e2e44c9a .
* added uri tests and made changelong entry
* Update lib/pure/uri.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update lib/pure/uri.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update tests/stdlib/turi.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update tests/stdlib/turi.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2022-05-30 12:09:18 +02:00
flywind
bbd5086bc3
[docs] clarify the raised exception ( #19308 )
...
* [docs] clarify the raised exception
Lest developers wanna know what the exception is.
* Apply suggestions from @konsumlamm
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2022-01-03 09:02:58 +01:00
Andreas Rumpf
81d32cf7e5
Revert "Update uri.nim ( #19148 ) [backport:1.0]" ( #19280 )
...
This reverts commit a3ef5df680 .
2021-12-23 07:03:40 +01:00
Dominik Picheta
a3ef5df680
Update uri.nim ( #19148 ) [backport:1.0]
2021-12-11 09:24:23 +01:00
Andreas Rumpf
983a2aa11c
Revert "Fix parseUri to sanitize urls containing ASCII newline or tab ( #17967 )" ( #17984 )
...
This reverts commit f4dd95f3be .
2021-05-09 23:33:31 +02:00
Beshr Kayali
f4dd95f3be
Fix parseUri to sanitize urls containing ASCII newline or tab ( #17967 )
...
* Fix parseUri to sanitize urls containing ASCII newline or tab
* Fix ups based on review
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Additional fix ups based on review
- Avoid unnecessary `removeUnsafeBytesFromUri` call if parseUri is strict
- Move some parseUri tests to uri module test file
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
* Update changelog
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2021-05-09 19:24:00 +01:00
Timothee Cour
eba1c3fd24
merge initUri() overloads, improve uri examples ( #17970 )
...
* deprecate `uri.initUri` and improve uri examples
* remove `func initUri*()` and make isIpv6 optional
* fixup
2021-05-08 16:58:30 +02:00
Andreas Rumpf
a9b62de895
CIs: attempt to use csources_v1 ( #16282 )
...
* CIs: attempt to use csources_v1
* also updated the BSDs
* also updated azure pipelines
* std modules should not itself use the 'std/' import dir...
* compiler has to be careful with std/ for v1 booting
2021-04-21 07:41:33 +02:00
Timothee Cour
611b88763f
start using import {.all.} ( #17736 )
2021-04-16 12:54:49 +02:00
flywind
1f1ef85eb0
[std/uri]fix #17481 ( #17568 )
2021-03-29 11:48:06 -07:00
Timothee Cour
0fcf1af765
uri: document removeDotSegments, add tests, show failure modes ( #17064 )
...
* uri: document removeDotSegments, add tests, show failure modes
* address comments
2021-02-20 17:58:54 +01:00
Benoit Favre
8f54d3b792
Fix bug in removeDotSegments when path ends with dot ( #17038 ) [backport:1.2]
2021-02-15 11:33:26 +01:00
flywind
ceab5e49f2
uri module uses runnableExamples ( #16982 )
2021-02-09 13:07:51 +01:00
Juan Carlos
78a99587a4
Deprecate TaintedString ( #15423 )
...
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2021-01-15 18:56:38 -08:00
Mildred Ki'Lya
71db2be833
Improve uri.parseQuery to never raise an error ( #16647 )
...
In case of malformed query string where there is `=` on the value, handle
this character as part of the value instead of throwing an error.
The following query string should no longer crash a program:
key=value&key2=x=1
It will be interpreted as [("key", "value"), ("key2", "x=1")]
This is correct according to latest WhatWG's HTML5 specification
recarding the urlencoded parser:
https://url.spec.whatwg.org/#concept-urlencoded-parser
Older behavior can be restored using the -d:nimLegacyParseQueryStrict
flag.
2021-01-12 13:42:05 +01:00
flywind
689504081f
follow #15357 and move decodeQuery ( #15860 )
...
* follow #15357 and move decodeQuery
* solve problem one
* minor
* deprecate decodeData
* add changelog and since
* add testcase for decodeQuery
2020-12-27 11:59:32 +01:00
flywind
1aaa67fc18
[docs minor] remove unicode in docs comments ( #16267 )
2020-12-06 05:51:29 +01:00
flywind
139075e965
move decode_helpers to std/private ( #16209 )
2020-12-02 10:30:55 -08:00
flywind
cbc793b30b
move tests to testament ( #16101 )
...
* move tests to testament
* minor
* fix random
* disable test random
2020-11-24 19:06:41 +01:00
flywind
af9cc2882f
use func in uri module ( #15486 )
2020-10-05 17:04:08 +02:00
flywind
e85c5ad379
fix #15333 ( #15336 )
2020-09-24 08:54:13 +02:00
Miran
c62513049c
fix #14082 , don't crash on incorrectly formatted input ( #14977 ) [backport]
...
* fix #14082 , don't crash on incorrectly formatted input
* address code review
* remove duplication
2020-07-17 10:59:53 +02:00
hlaaftana
fbc97e712a
move since from inclrtl to std/private/since ( #14188 )
...
* move since from inclrtl to std/private/since
* move since import in system below for HCR
2020-05-02 23:51:59 +02:00
Juan Carlos
c269964860
Add Data URI Base64, implements RFC-2397 ( #13759 )
...
* Add Data URI Base64, implements RFC-2397
* Add Data URI Base64, implements RFC-2397
* Add Data URI Base64, implements RFC-2397
* https://github.com/nim-lang/Nim/pull/13759#issuecomment-611498420
* https://github.com/nim-lang/Nim/pull/13759#issuecomment-611498420
* ReSync changelog
* https://github.com/nim-lang/Nim/pull/13759#issuecomment-611498420
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2020-04-13 14:15:45 +01:00
narimiran
0ca9cc7419
[backport] run nimpretty on web stuff
2019-09-30 13:58:11 +02:00
Timothee Cour
8c93c692b9
run runnableExamples in the module scope ( #11732 ) [feature]
2019-07-22 16:22:57 +02:00
Araq
c94647aeca
styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
2019-07-10 12:42:41 +02:00
LemonBoy
ec26bc472d
Add encodeQuery and ? to Uri module
2019-01-31 13:47:51 +01:00
Thomas T. Jarløv
91b39f2219
uri: Update documentation typo ( #10471 )
2019-01-27 21:59:58 +01:00
narimiran
83caa58c7a
docs: fix trailing comma in links
2019-01-25 09:43:47 +01:00
Thomas T. Jarløv
bfeade9791
better docs: uri ( #10373 )
2019-01-19 15:31:14 +01:00
Miran
214f48eae9
Remove long deprecated stuff ( #10332 )
2019-01-18 07:18:32 +01:00
Kaushal Modi
903886396d
Don't prevent ',' from getting escaped in theindex.html
...
- Enable escaping of links in theindex.html
- Fixes https://github.com/nim-lang/Nim/issues/9107 .
- Second part of the fix for https://github.com/nim-lang/Nim/issues/9097 .
2018-09-28 15:39:22 -04:00
Araq
bbb0fd4eb7
remove deprecated stuff from the stdlib; introduce better deprecation warnings
2018-05-05 21:45:07 +02:00
Dominik Picheta
9099ec5d0b
Merges #7700 manually and adds decodePlus option to decodeUrl too.
2018-05-03 15:18:19 +01:00
Andreas Rumpf
f4c21305a9
uri.nim: don't rely on zero termination
2018-04-29 01:46:40 +02:00
Dominik Picheta
6c035379fe
Merge pull request #6597 from pgkos/uri-allow-no-authority
...
Allow parsing URIs without authority
2018-01-28 17:00:33 +00:00
Veladus
27ea1750e5
Moved encodeUrl and decodeUrl from cgi to url
2017-11-25 16:55:10 +01:00
Federico Ceratto
bd71d4205b
Make Uri rendering more lenient
...
When the hostname and path fields are set, handle missing or extra
slashes to generate valid URLs.
2017-11-14 02:28:13 +00:00
Andreas Rumpf
6a3288a60e
more replacements for the deprecated '<'
2017-10-29 08:55:30 +01:00
pgkos
a20326e268
Allow parsing URIs without authority
2017-10-25 18:54:34 +02:00
Dominik Picheta
1dc6caea6b
Fixes issues with URI concatenation when URI has no path.
2017-10-13 20:10:54 +01:00
Andreas Rumpf
a3f80c4bdf
avoid deprecated procs
2017-07-26 08:52:03 +02:00