Skip to content

Commit

Permalink
forban_share: avoid cherrypy showing tracebacks in case of err
Browse files Browse the repository at this point in the history
E.g. avoid leaking info on internal paths
  • Loading branch information
Philippe Teuwen authored and adulau committed Apr 24, 2011
1 parent 16a9896 commit 16c344d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/forban_share.py
Expand Up @@ -92,7 +92,7 @@ def guesspath():
else:
bindhost = "0.0.0.0"

cherrypy.config.update({ 'log.screen': False, 'server.socket_port': 12555 , 'server.socket_host': bindhost, 'tools.static.root':forbanshareroot, 'log.access_file':forbanpathlogfile, 'log.error_file':forbanpathlogfilee})
cherrypy.config.update({ 'log.screen': False, 'server.socket_port': 12555 , 'server.socket_host': bindhost, 'tools.static.root':forbanshareroot, 'log.access_file':forbanpathlogfile, 'log.error_file':forbanpathlogfilee, 'request.show_tracebacks': False})

forbanpathcherry = { '/css/style.css': {'tools.staticfile.on': True, 'tools.staticfile.filename':forbanshareroot+'forban/css/x.css'},
'/img/forban-small.png': {'tools.staticfile.on': True, 'tools.staticfile.filename':forbanshareroot+'forban/img/forban-small.png'}
Expand Down

0 comments on commit 16c344d

Please sign in to comment.