Created
March 8, 2011 20:32
-
-
Save ryedin/860974 to your computer and use it in GitHub Desktop.
allow devs to explicitly serve common static resources from shared location outside of running app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!options.allowUnsafe && ~path.indexOf('..')) return fn | |
? fn(new Error('Forbidden')) | |
: forbidden(res); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment