mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-21 18:23:20 +00:00
Fix: Apply unicode normalization to all paths and path components (#12993)
This commit is contained in:
@@ -3126,6 +3126,7 @@ class PostDocumentView(GenericAPIView[Any]):
|
||||
serializer.is_valid(raise_exception=True)
|
||||
|
||||
doc_name, doc_data = serializer.validated_data.get("document")
|
||||
doc_name = normalize("NFC", doc_name)
|
||||
correspondent_id = serializer.validated_data.get("correspondent")
|
||||
document_type_id = serializer.validated_data.get("document_type")
|
||||
storage_path_id = serializer.validated_data.get("storage_path")
|
||||
|
||||
Reference in New Issue
Block a user