overleaf/server-ce/hotfix/4.0.5/pr_13122.patch
Miguel Serrano 59fe2fe463 [CE/SP] Hotfixes 3.5.10 / 4.0.5 (#13961)
* [CE/SP] Hotfixes 3.5.10 / 4.0.5

* [CE/SP] include PR13122 in 4.0.5 hotfixes

---------

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
GitOrigin-RevId: 68d31f4a4573d2cad1ee564a62957ad2c858cbe7
2023-07-21 08:04:44 +00:00

11 lines
376 B
Diff

--- services/web/app/src/Features/Compile/CompileController.js
+++ services/web/app/src/Features/Compile/CompileController.js
@@ -371,7 +371,7 @@ module.exports = CompileController = {
},
_getSafeProjectName(project) {
- return project.name.replace(/\P{L}/gu, '_')
+ return project.name.replace(/[^\p{L}\p{Nd}]/gu, '_')
},
deleteAuxFiles(req, res, next) {