bug in uri standard library ?

D

denis

There seem to be a bug in the regexps appearing in lib/uri/common.rb.
The problem is the port regexp

# port = *digit
PORT = "\d*"

should be

PORT = "\\d*"

The HOSTPORT regexp is also wrong in 1.8.1 but is corrected in ruby
cvs (1.8.2) :
# hostport = host [ ":" port ]
HOSTPORT = "#{HOST}(?::#{PORT})?"


I hope this is the good place to report such bugs, otherwise please
tell me.

Ciao

Denis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,609
Members
45,254
Latest member
Top Crypto TwitterChannel

Latest Threads

Top