Browse Source

Merge branch 'gdritter/misc-fixes' of getty/lament-configuration into master

getty 3 years ago
parent
commit
0005329d51
2 changed files with 3 additions and 1 deletions
  1. 2 0
      lc/config.py
  2. 1 1
      lc/model.py

+ 2 - 0
lc/config.py

@@ -32,6 +32,8 @@ class App:
             __name__,
             static_folder=os.path.join(os.getcwd(), config.static_path),
         )
+        # 16MB
+        app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
         app.secret_key = config.secret_key
         return App(
             config=config,

+ 1 - 1
lc/model.py

@@ -353,7 +353,7 @@ class Tag(Model):
         while p := p.parent:
             yield p
 
-    BAD_TAG_CHARS = set("{}[]\\()#?")
+    BAD_TAG_CHARS = set("{}[]\\#?")
 
     @staticmethod
     def is_valid_tag_name(tag_name: str) -> bool: