You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/hibernate/query/HqlQueryExecutor.java
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/internal/store/hibernate/query/HqlQueryUtilsTest.java
+2
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,8 @@ public void isSafe()
63
63
.isSafe("select doc.name, ot.field from XWikiDocument doc, XWikiSpace space, OtherTable as ot"));
64
64
assertFalse(HqlQueryUtils.isSafe("select count(*) from OtherTable"));
65
65
assertFalse(HqlQueryUtils.isSafe("select count(other.*) from OtherTable other"));
66
+
assertFalse(HqlQueryUtils.isSafe("select doc.fullName from XWikiDocument doc union all select name from OtherTable"));
67
+
assertFalse(HqlQueryUtils.isSafe("select doc.fullName from XWikiDocument doc where 1<>'1\\'' union select name from OtherTable #'"));
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/store/hibernate/query/HqlQueryExecutorTest.java
+6-5
Original file line number
Diff line number
Diff line change
@@ -220,7 +220,7 @@ public void setNamedParameterArray()
Copy file name to clipboardExpand all lines: xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-server/src/main/java/org/xwiki/rest/internal/resources/search/AbstractDatabaseSearchSource.java
+1
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ public abstract class AbstractDatabaseSearchSource extends AbstractSearchSource
0 commit comments