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

raise 404 on not found static file #4435

Merged
merged 1 commit into from Oct 27, 2013
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Oct 24, 2013

master gives 403 due to empty string being outside of root

@@ -322,7 +322,7 @@ def get_absolute_path(cls, roots, path):
abspath = os.path.abspath(filefind(path, roots))
except IOError:
# empty string should always give exists=False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this comment no longer apply then?

@minrk
Copy link
Member Author

minrk commented Oct 24, 2013

I have a better idea

master gives 403 due to empty string being outside of root
@minrk
Copy link
Member Author

minrk commented Oct 24, 2013

Better idea was actually worse. Comment updated.

@Carreau
Copy link
Member

Carreau commented Oct 27, 2013

Looks good.

minrk added a commit that referenced this pull request Oct 27, 2013
raise 404 on not found static file
@minrk minrk merged commit 256a389 into ipython:master Oct 27, 2013
@minrk minrk deleted the tornado-tweaks branch October 27, 2013 20:12
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
raise 404 on not found static file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants