Skip to content
This repository was archived by the owner on Feb 14, 2018. It is now read-only.

Files in hidden directories shouldn't be sent to client - #5

Open
yf-hk wants to merge 5 commits into
koajs:masterfrom
yf-hk:patch-1
Open

Files in hidden directories shouldn't be sent to client#5
yf-hk wants to merge 5 commits into
koajs:masterfrom
yf-hk:patch-1

Conversation

@yf-hk

@yf-hk yf-hk commented Feb 2, 2015

Copy link
Copy Markdown

If option hidden is set, I think it should also check that if any of the directory in the path is hidden. Otherwise something like /test/public/.git/config might also pass the filter which is apparently not right.

Since we shouldn't match the result in base path. For example '/var/.webroot/abc.txt'
fix the broken test. sorry it's a bit ugly used regex `look behind` (negative matching) clause
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 98.46% when pulling db84414 on andyhu:patch-1 into ee9d7e8 on koajs:master.

@yf-hk

yf-hk commented Feb 2, 2015

Copy link
Copy Markdown
Author

Sorry, I couldn't fix the test. But hopefully you see the point

@yf-hk yf-hk changed the title Update index.js Files in hidden directories shouldn't be send to client Feb 2, 2015
@yf-hk yf-hk changed the title Files in hidden directories shouldn't be send to client Files in hidden directories shouldn't be sent to client Feb 2, 2015
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 98.46% when pulling e59caec on andyhu:patch-1 into ee9d7e8 on koajs:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 98.46% when pulling e59caec on andyhu:patch-1 into ee9d7e8 on koajs:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 98.46% when pulling 7e80c32 on andyhu:patch-1 into ee9d7e8 on koajs:master.

@haoxins

haoxins commented Feb 3, 2015

Copy link
Copy Markdown
Member

@andyhu rebase with master, tests should be passed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants