jetti777Ltd / mochiweb

Automatically exported from code.google.com/p/mochiweb
Other
0 stars 0 forks source link

mochiweb_util:urlsplit gets confused with relative urls with colons in them #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Ran into this when working with mediawiki urls which use colons as namespace 
separators. 

mochiweb_util:urlsplit("/wiki/category:Fruit") should return:

{[], [], "/wiki/category:Fruit", [], []}

but instead returns

{"/wiki/category",[],"Fruit",[],[]}

I've attach a patch with testcase that would fix this.

Original issue reported on code.google.com by carlo.ca...@gmail.com on 24 Jan 2010 at 4:21

Attachments:

GoogleCodeExporter commented 8 years ago
r138 (I rewrote the patch for correctness)

Original comment by bob.ippo...@gmail.com on 24 Jan 2010 at 6:13