# HG changeset patch # User drewp@bigasterisk.com # Date 1381557137 25200 # Node ID 68a7a15b0eb501b38142616755f2f01246a1a210 # Parent 57ae7dc0f41704fdbb45473aa73362d29fd5e381 format Ignore-this: b956bc580c14c347ec202e72b4b26870 diff -r 57ae7dc0f417 -r 68a7a15b0eb5 service/shuttlepro/shuttleservice.py --- a/service/shuttlepro/shuttleservice.py Fri Oct 11 22:36:41 2013 -0700 +++ b/service/shuttlepro/shuttleservice.py Fri Oct 11 22:52:17 2013 -0700 @@ -85,12 +85,10 @@ port = 9103 poller = Poller() reactor.listenTCP(port, cyclone.web.Application(handlers=[ - (r'/()', Index, {"path" : ".", # security hole- serves this dir too - "default_filename" : "index.html"}), + (r'/()', Index, {"path" : ".", "default_filename" : "index.html"}), (r'/graph', GraphResource), - (r'/(.*)', cyclone.web.StaticFileHandler, - {"path" : ".", # security hole- serves this dir too - "default_filename" : "index.html"}), + # serves this source code too + (r'/(.*)', cyclone.web.StaticFileHandler, {"path" : "."}) ], poller=poller)) log.info("serving on %s" % port) reactor.run()