Skip to content

Commit

Permalink
Core: fix ReDoS vulnerability in url2 (#2428)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream committed May 19, 2022
1 parent aa5bcdc commit 69cb17e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/additional/url2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/methods.js
Expand Up @@ -122,7 +122,7 @@ QUnit.test( "url2 (tld optional)", function( assert ) {
assert.ok( method( "ftp://bassistance.de/jquery/plugin.php?bla=blu" ), "Valid url" );
assert.ok( method( "http://www.føtex.dk/" ), "Valid url, danish unicode characters" );
assert.ok( method( "http://bösendorfer.de/" ), "Valid url, german unicode characters" );
assert.ok( method( "http://192.168.8.5" ), "Valid IP Address" );
assert.ok( method( "http://142.42.1.1" ), "Valid IP Address" );
assert.ok( !method( "http://192.168.8." ), "Invalid IP Address" );
assert.ok( method( "http://bassistance" ), "Invalid url" );
assert.ok( method( "http://bassistance." ), "Invalid url" );
Expand Down

0 comments on commit 69cb17e

Please sign in to comment.