diff options
author | Micah Lee <micah@micahflee.com> | 2019-10-13 09:55:51 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2019-10-13 09:55:51 -0700 |
commit | e80560951eee28d41508b7eca4c5c8c03c3f4ae2 (patch) | |
tree | 3ce2b42abcb4c2cf95d371d997f4f439021a5dac | |
parent | 6869f20732cb6ba648513a4ada17db5cbb198cb6 (diff) | |
parent | 8f1e09875be594b5713908bb9d92894a663b2210 (diff) | |
download | onionshare-e80560951eee28d41508b7eca4c5c8c03c3f4ae2.tar.gz onionshare-e80560951eee28d41508b7eca4c5c8c03c3f4ae2.zip |
Merge branch 'static_bug' into develop
-rw-r--r-- | onionshare/web/web.py | 3 |
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) |