Skip to content

Commit

Permalink
Correctly allow base64 prefixes for "s/" (#4958)
Browse files Browse the repository at this point in the history
Fixes #4957
  • Loading branch information
niloc132 authored Dec 18, 2023
1 parent 48a56d9 commit 8930861
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class JsVariableDefinition {
private final String applicationName;

public JsVariableDefinition(String type, String title, String id, String description) {
// base64('s/') ==> 'cy8'
if (!id.startsWith("cy8")) {
// base64('s/' + str) starts with 'cy8' or 'cy9'
if (!id.startsWith("cy")) {
throw new IllegalArgumentException("Cannot create a VariableDefinition from a non-scope ticket");
}
this.type = type;
Expand Down

0 comments on commit 8930861

Please sign in to comment.