summarylogtreecommitdiffstats
path: root/flask2.patch
blob: ac54193aa4dfbb4af34a441fab492995f2b751f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- changedetection.io-0.39.4/changedetectionio/__init__.py	2021-12-02 21:54:38.000000000 +0000
+++ changedetectionio/__init__.py	2021-12-05 21:35:58.148679910 +0000
@@ -679,7 +679,7 @@
 
     @app.route("/favicon.ico", methods=['GET'])
     def favicon():
-        return send_from_directory("/app/static/images", filename="favicon.ico")
+        return send_from_directory("static/images", path="favicon.ico")
 
     # We're good but backups are even better!
     @app.route("/backup", methods=['GET'])
@@ -741,7 +741,7 @@
     def static_content(group, filename):
         # These files should be in our subdirectory
         try:
-            return send_from_directory("static/{}".format(group), filename=filename)
+            return send_from_directory("static/{}".format(group), path=filename)
         except FileNotFoundError:
             abort(404)