You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by th...@apache.org on 2025/02/26 13:26:26 UTC
(jackrabbit-oak) branch OAK-11529 created (now c2e153d9c9)
This is an automated email from the ASF dual-hosted git repository.
thomasm pushed a change to branch OAK-11529
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
at c2e153d9c9 OAK-11529 RegExp recursion in AstElement - workaround
This branch includes the following new commits:
new c2e153d9c9 OAK-11529 RegExp recursion in AstElement - workaround
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(jackrabbit-oak) 01/01: OAK-11529 RegExp recursion in AstElement - workaround
Posted by th...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
thomasm pushed a commit to branch OAK-11529
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit c2e153d9c9ddd3520bb7fa321c5321c9940bea9c
Author: Thomas Mueller <th...@apache.org>
AuthorDate: Wed Feb 26 14:26:07 2025 +0100
OAK-11529 RegExp recursion in AstElement - workaround
---
.../src/main/java/org/apache/jackrabbit/oak/query/ast/AstElement.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/AstElement.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/AstElement.java
index d4d98dc6db..ab65ae26a9 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/AstElement.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/AstElement.java
@@ -41,12 +41,12 @@ abstract class AstElement {
}
}
- protected String quote(String pathOrName) {
+ protected static String quote(String pathOrName) {
pathOrName = pathOrName.replaceAll("]", "]]");
return '[' + pathOrName + ']';
}
- protected String quoteJson(String string) {
+ protected static String quoteJson(String string) {
return '"' + string.replaceAll("\"", "\"\"") + '"';
}