mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
9 lines
337 B
Python
9 lines
337 B
Python
import cherrypy
|
|
from cherrypy.lib.static import serve_file, serve_download, staticfile
|
|
|
|
serve_file("file") # $ getAPathArgument="file"
|
|
serve_download("file") # $ getAPathArgument="file"
|
|
staticfile("file") # $ getAPathArgument="file"
|
|
# root won't make this safe
|
|
staticfile("file", root="/path/to/safe/dir") # $ getAPathArgument="file"
|