Escape single quotes sent to the ProgressBar. Fixes but #11229.

This commit is contained in:
Colin Kuskie 2009-11-13 11:19:25 -08:00
parent 6c6270346e
commit b88a7bc190
4 changed files with 18 additions and 2 deletions

View file

@ -147,7 +147,8 @@ A message to be displayed in the status bar.
sub update {
my $self = shift;
my $message = shift; ##JS string escaping?
my $message = shift;
$message =~ s/'/\\'/g; ##Encode single quotes for JSON;
$self->session->log->preventDebugOutput;
$self->{_counter} += 1;