[xwiki/xwiki-platform] dc0751: XWIKI-23891: Resources that are referenced without...
Branch: refs/heads/stable-16.10.x Home: https://github.com/xwiki/xwiki-platform Commit: dc0751171a4cf60270aa55b456d81b72f2541895 https://github.com/xwiki/xwiki-platform/commit/dc0751171a4cf60270aa55b456d81... Author: Michael Hamann <michael.hamann@xwiki.com> Date: 2026-01-27 (Tue, 27 Jan 2026) Changed paths: M xwiki-platform-core/xwiki-platform-webjars/xwiki-platform-webjars-api/src/main/java/org/xwiki/webjars/internal/FilesystemResourceReferenceCopier.java A xwiki-platform-core/xwiki-platform-webjars/xwiki-platform-webjars-api/src/test/java/org/xwiki/webjars/internal/FilesystemResourceReferenceCopierTest.java Log Message: ----------- XWIKI-23891: Resources that are referenced without quotes aren't extracted from CSS WebJar resources during export * Improve the regular expression to detect URLs without quotes. * Make the regular expression for URLs more robust. * Improve the code style by using more try-with-resource statements. * Add a unit test. (cherry picked from commit 1974ab5f1e1f8b3aa74fe00b01efd74cd3a8455d) Commit: 3ec73c1d34f002b284b7b0ce73e8c30bb75338fa https://github.com/xwiki/xwiki-platform/commit/3ec73c1d34f002b284b7b0ce73e8c... Author: Michael Hamann <michael.hamann@xwiki.com> Date: 2026-01-27 (Tue, 27 Jan 2026) Changed paths: M xwiki-platform-core/xwiki-platform-webjars/xwiki-platform-webjars-api/src/main/java/org/xwiki/webjars/internal/FilesystemResourceReferenceCopier.java Log Message: ----------- XWIKI-23891: Resources that are referenced without quotes aren't extracted from CSS WebJar resources during export * Make the regular expression stricter to avoid slow matching. (cherry picked from commit 35539513915b76b1e90f450461f2847f9f50e93b) Commit: ddc5b80fa97ccc504c528f1b833719b5c62285df https://github.com/xwiki/xwiki-platform/commit/ddc5b80fa97ccc504c528f1b83371... Author: Michael Hamann <michael.hamann@xwiki.com> Date: 2026-01-27 (Tue, 27 Jan 2026) Changed paths: M xwiki-platform-core/xwiki-platform-webjars/xwiki-platform-webjars-api/src/main/java/org/xwiki/webjars/internal/FilesystemResourceReferenceCopier.java M xwiki-platform-core/xwiki-platform-webjars/xwiki-platform-webjars-api/src/test/java/org/xwiki/webjars/internal/FilesystemResourceReferenceCopierTest.java Log Message: ----------- XWIKI-23902: Protect against path traversal from WebJar * Detect path traversal both in URLs in CSS and when copying resources. * Add tests. (cherry picked from commit 9f747fcd3200259a1de51957d3f5f6acc8e3816c) Compare: https://github.com/xwiki/xwiki-platform/compare/36996b637828...ddc5b80fa97c To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications