Actions
Bug #6520
closedInvalid url is identified as valid
Description
(({
1.9.3p125 :006 > require 'uri'
=> true
1.9.3p125 :007 > URI.parse invalid_url
URI::InvalidURIError: bad URI(is not URI?): http://abc</option%3E
1.9.3p125 :009 > invalid_url =~ URI::regexp
=> 0
}))
As you can see, 'parse' behaves correctly (ie raises an exception), while the 'regexp' does not catch the error
Actions
Like0
Like0