Skip to content

Commit 3ce1562

Browse files
committed
Issue 54094: escape form field names ending with "\"
1 parent 850f9cb commit 3ce1562

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

api/src/org/labkey/api/query/QueryUpdateForm.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ else if (c == BACKSLASH)
9797
sb.append(c);
9898
}
9999

100+
// Issue 54094: Ensure it works when backslash is the last character
100101
if (escaping)
101-
throw new IllegalArgumentException("Invalid escape at end of encoded name: " + columnName);
102+
sb.append(BACKSLASH);
102103

103104
return getTable().getColumn(sb.toString());
104105
}

0 commit comments

Comments
 (0)