summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2019-10-13 09:55:51 -0700
committerMicah Lee <micah@micahflee.com>2019-10-13 09:55:51 -0700
commite80560951eee28d41508b7eca4c5c8c03c3f4ae2 (patch)
tree3ce2b42abcb4c2cf95d371d997f4f439021a5dac
parent6869f20732cb6ba648513a4ada17db5cbb198cb6 (diff)
parent8f1e09875be594b5713908bb9d92894a663b2210 (diff)
downloadonionshare-e80560951eee28d41508b7eca4c5c8c03c3f4ae2.tar.gz
onionshare-e80560951eee28d41508b7eca4c5c8c03c3f4ae2.zip
Merge branch 'static_bug' into develop
-rw-r--r--onionshare/web/web.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/onionshare/web/web.py b/onionshare/web/web.py
index 4c4207e6..b5b805ec 100644
--- a/onionshare/web/web.py
+++ b/onionshare/web/web.py
@@ -68,6 +68,9 @@ class Web:
self.app = Flask(
__name__,
static_folder=self.common.get_resource_path("static"),
+ static_url_path="/static_".format(
+ self.common.random_string(16)
+ ), # randomize static_url_path to avoid making /static unusable
template_folder=self.common.get_resource_path("templates"),
)
self.app.secret_key = self.common.random_string(8)