Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/url: Parse removing more directories than it should #3560

Closed
gopherbot opened this issue Apr 22, 2012 · 5 comments
Closed

net/url: Parse removing more directories than it should #3560

gopherbot opened this issue Apr 22, 2012 · 5 comments
Milestone

Comments

@gopherbot
Copy link

by altermatt:

It appears that using Parse with a ".." in the middle of the ref string
removes the directory in both the URL and the ref being passed in.

What steps will reproduce the problem?
http://play.golang.org/p/NFtMwSH5vE


What is the expected output?
http://example.org/dir1/dir2/dir3/dir5

What do you see instead?
http://example.org/dir1/dir5

Which compiler are you using (5g, 6g, 8g, gccgo)?
go x64 on windows

Which operating system are you using?
Windows 7 x64

Which version are you using?  (run 'go version')
go1

Please provide any additional information below.
I double checked to make sure that the expected is what is seen using FireFox.
@rsc
Copy link
Contributor

rsc commented Sep 12, 2012

Comment 1:

Labels changed: added priority-later, removed priority-triage.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Sep 12, 2012

Comment 2:

Labels changed: added go1.1.

@gopherbot
Copy link
Author

Comment 4 by rickarnoldjr:

Fixed by https://golang.org/cl/6869054/

@rsc
Copy link
Contributor

rsc commented Dec 10, 2012

Comment 5:

Labels changed: added size-s.

@rsc
Copy link
Contributor

rsc commented Dec 11, 2012

Comment 6:

This issue was closed by revision 2f45f28.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants