summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* increment $VERSION after 5.19 releaseJulien Fiegehenn2023-04-3054-54/+54
|
* disambiguate code for older PerlsJulien Fiegehenn2023-04-301-1/+1
| | | | | | | It seems there was a bug in Perl < 5.22 that led to defined immediately followed by a ternary '?' getting the parsing wrong. I checked this with RJBS at the PTC and he couldn't explain why, so I just added the brackets.
* handle form params without valuesGianni Ceccarelli2023-04-301-6/+10
| | | | | you can create them by passing `undef` as value, which is also what you get when parsing them
* increment $VERSION after 5.18 releaseJulien Fiegehenn2023-04-2954-54/+54
|
* Update URI::_punycode to make several functions that have neverChase Whitener2023-04-291-10/+10
| | | | | | | | | | | | | been documented and have always been considered private to actually be private. * adapt -> _adapt * code_point -> _code_point * digit_value -> _digit_value * min -> _min This allows us to remove some special casing in the dist.ini conf file, reducing complexity.
* protect username '0'Julien Fiegehenn2023-04-291-1/+1
|
* remove colon from pair "user:pass" if has no passwordJoenio Costa2023-04-291-2/+2
| | | | (closes github issue #13)
* rephrase POD and add test to prove itJulien Fiegehenn2023-04-291-5/+8
|
* Add samples to PODSebastian Willing2023-04-291-1/+6
|
* increment $VERSION after 5.17 releaseOlaf Alders2022-11-0254-54/+54
|
* Add missing unit test coverage and fix SIP URI to pass tests. MainlyRyan Kereliuk2022-11-021-22/+18
| | | | fixing the params() setter but make the code more readable in general.
* Updated pod RFC references in URI::fileHåkon Hægland2022-11-011-6/+5
| | | | | Latest RFC version of the uri file scheme is RFC 8089, and latest version of RFC for generic URI syntax is RFC 3986.
* increment $VERSION after 5.16 releaseOlaf Alders2022-10-1254-54/+54
|
* merge URI::QueryParam into URI itselfGraham Knop2022-10-123-184/+162
|
* increment $VERSION after 5.15 releaseOlaf Alders2022-10-1154-54/+54
|
* uri_escape: allow characters to escape to be specified as a Regexp objectGraham Knop2022-10-111-0/+13
|
* increment $VERSION after 5.14 releaseOlaf Alders2022-10-1054-54/+54
|
* fix uri_escape support for \w style character classesGraham Knop2022-10-101-15/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | uri_escape accepts a set of characters as its second parameter. This would have some escaping done on it before being put in an eval to generate an an escaping sub. The last release of URI attempted to do extra escaping on this character set. It tried to match the allowed forms of character classes, including a-z and [:alpha:] forms, an escaping everything else. But it didn't allow for character classes like \w. This broke several modules. The original design of the code was written for prehistoric versions of perl that didn't support compiled regexes (qr//). This is why it needed the eval and sub generation. The supported perl versions all support qr// objects, so we can compile using them rather than eval. This means much less needs to be escaped. Specifically, only the [] characters themselves. If we allow through the POSIX class forms ([:alpha:]), escaping all others, we can still be safe but allow all existing forms to be used. This can result in warnings when attempting to use escapes like \Q...\E, which are not valid character class escapes. These warnings are appropriate, so test for them. Some existing tests were expecting any backslash in the input to result in backslashes being escaped. Since we are now allowing all backslash sequences through, this is inappropriate. The tests needed to be changed.
* increment $VERSION after 5.13 releaseOlaf Alders2022-10-0654-54/+54
|
* Improve escaping of unwanted charactersBranislav Zahradník2022-10-061-1/+8
| | | | Fixes #74
* increment $VERSION after 5.12 releaseOlaf Alders2022-07-1054-54/+54
|
* Bugfix for #102 -- "5.11 breaks HTML::FormatExternal"Perlbotics2022-07-101-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Test case added. Skipping attempt to unescape empty authority part. See: https://github.com/libwww-perl/URI/issues/102 The previous fix checked the result of the regex-match. However, the regex-match could have avoided the situation in the first place. The new regex now asks for a non-zero authority part. Skip IPv6 handling of schemes that do not have an authority part. Currently: data, file, ldapi, urn, sqlite, sqlite3 Fix: Fallback to pre 5.11 for specific schemes (i.e. 'mailto:'). Short test cases added for 'mailto:' URIs having address literals (IPv4 and IPv6). Modernized t/file.t to use Test::More instead of plain TAP. In preparation of more future tests. Tests added to show that domain in file:// is properly escaped.
* increment $VERSION after 5.11 releaseOlaf Alders2022-07-0454-54/+54
|
* uri-test: use local implementation (./lib) while authoring modulePerlbotics2022-07-043-6/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bugfix #99: Square brackets in path element not escaped. Hopefully fixes issue#99 w/o breaking new stuff. https://github.com/libwww-perl/URI/issues/99 Setting the environment variable URI_RESERVED_SQUARE_BRACKETS=1 restores the old behaviour (5.10 and before). See section ENVIRONMENT VARIABLES of the URI.pm perldoc. Tests for issue#99: Square brackets in path element not escaped. Not complete yet. See #TODO. t/old-base.t adapted to match new and legacy behavior Fixed typos in POD of URI.pm more tests, esp. getter validation userinfo(): setter escapes according to RFC 3987 authority(): setter escapes userinfo part separately from host part authority(): IPv6 detection for host part (should use Regexp::IPv6) URI.pm: POD fixed uri-test: explicit use of ./lib replaced by visual warning See: https://github.com/libwww-perl/URI/pull/100#discussion_r903497606 POD corrections and clarifications. See: https://github.com/libwww-perl/URI/pull/100#discussion_r895442979 https://github.com/libwww-perl/URI/pull/100#discussion_r895443302 https://github.com/libwww-perl/URI/pull/100#discussion_r903515373 Unused global variable removed. See: https://github.com/libwww-perl/URI/pull/100#discussion_r895978559 _generic.pm: uses Regexp::IPv6 if installed, fallback otherwise The fallback regexp is just a check for the minimum amount of legal characters. Extra check is used to ensure that at least two colons are present. See: https://github.com/libwww-perl/URI/pull/100#discussion_r903810999 Another try to get POD spehlink rait. cpanfile: Regexp::IPv6 is suggested at runtime Spelling fixed and comments updated. Thanks, @simbabque.
* Remove trailing whitespace in URI::file's podOlaf Alders2021-12-021-3/+3
|
* Fix typos in URI::fileOlaf Alders2021-12-021-2/+2
|
* increment $VERSION after 5.10 releaseOlaf Alders2021-10-2554-54/+54
|
* special treatment for plus signs in mailto: URIs #89Julien Fiegehenn2021-10-191-1/+16
| | | | | This is in accordance with https://datatracker.ietf.org/doc/html/rfc6068#section-5.
* increment $VERSION after 5.09 releaseOlaf Alders2021-03-0354-54/+54
|
* Bump version number in URI::urn::isbn version check warningOlaf Alders2021-03-031-2/+2
|
* Tidy whitespace in isbn.pmOlaf Alders2021-03-031-5/+5
|
* increment $VERSION after 5.08 releaseKaren Etheridge2021-02-2854-54/+54
|
* update documentation for news, nttp, snews, nntpsKaren Etheridge2021-02-261-2/+3
|
* add URI::nntps (closes #82)Karen Etheridge2021-02-262-0/+18
|
* increment $VERSION after 5.07 releaseOlaf Alders2021-01-2953-53/+53
|
* s/perl.com/example.com/ in examples and testsOlaf Alders2021-01-292-5/+5
|
* increment $VERSION after 5.06 releaseOlaf Alders2021-01-1453-53/+53
|
* Tidy import statementsOlaf Alders2021-01-136-8/+8
|
* increment $VERSION after 5.05 releaseOlaf Alders2020-10-2153-53/+53
|
* Bump all versions to 5.05Olaf Alders2020-10-2153-53/+53
| | | | Fixes #73 and #76.
* increment $VERSION after 1.76 releaseOlaf Alders2019-01-0948-48/+48
|
* Revert "closes #57 (canonical always clones)"Olaf Alders2019-01-091-18/+13
| | | | | | | This reverts commit c77b2bc35d8bb6f469851f97ec0354c67f0228fe. This was breaking tests for HTTP::Config. See https://github.com/libwww-perl/HTTP-Message/issues/121
* increment $VERSION after 1.75 releaseOlaf Alders2019-01-0848-48/+48
|
* closes #57 (canonical always clones)Dorian Taylor2019-01-081-13/+18
|
* increment $VERSION after 1.74 releaseKaren Etheridge2018-04-2248-48/+48
|
* silent "Use of uninitialized value in lc" warningShoichi Kaji2018-04-221-2/+2
|
* increment $VERSION after 1.73 releaseKaren Etheridge2018-01-0848-95/+48
|
* Update the documentation for URI::_punycode to show better examplesgenio-puny-docChase Whitener2018-01-061-27/+41
| | | | | | | | | | | | to fix GH Issue #45. Standardized the documentation a bit as well by using head2 entries instead of over and item. This allows metacpan and the like to auto-generate a Table of Contents a bit more easily and makes direct links to sections/functions a bit simpler. The synopsis should be directly runnable now if someone were to copy and paste it to test.
* use URI in SYNOPSISsynopsisShoichi Kaji2017-09-301-0/+2
|
* increment $VERSION after 1.72 releaseKaren Etheridge2017-07-2548-48/+48
|