Skip to content

Commit

Permalink
Encodes agent user id for special characters
Browse files Browse the repository at this point in the history
Change-Id: I92a89d42bcd42cc18282a2952ccd02ef30586190
  • Loading branch information
Fleker committed Aug 7, 2018
1 parent 9ee7855 commit cfb0b0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/ngapp/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export class HomeComponent implements OnInit {
alert('Missing data');
return;
}
this.router.navigate([`../device-list/${this.currentFileUpload.name}/${this.agentUserId}`], { relativeTo: this.route });
this.router.navigate([`../device-list/${this.currentFileUpload.name}/${encodeURIComponent(String(this.agentUserId))}`],
{ relativeTo: this.route });
}
}

0 comments on commit cfb0b0c

Please sign in to comment.