Skip to content

Commit

Permalink
Escape 'select' values in REST actions (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboMagus authored Oct 29, 2022
1 parent 2abf744 commit afad4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/esp-entity-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class EntityTable extends LitElement {
return html`<select
@change="${(e: Event) => {
let val = e.target?.value;
this.restAction(entity, `${action}?${opt}=${val}`);
this.restAction(entity, `${action}?${opt}=${encodeURIComponent(val)}`);
}}"
>
${options.map(
Expand Down

0 comments on commit afad4eb

Please sign in to comment.