Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Fixed: Missing quoting in State::StateGetStatesByType() (bug#10158).
Browse files Browse the repository at this point in the history
  • Loading branch information
mgruner committed Jan 14, 2014
1 parent a61cba2 commit 0680603
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- 2013-12-12 Added additional information to install commands for different distributions (see perl bin/otrs.CheckModules.pl -h) for more information.

#3.3.4 201?-??-??
- 2014-01-14 Fixed bug#[10158](http://bugs.otrs.org/show_bug.cgi?id=10158) - Missing quoting in State::StateGetStatesByType().
- 2014-01-14 Fixed bug#[10048](http://bugs.otrs.org/show_bug.cgi?id=10048) - RPM upgrade breaks permissions on config files.
- 2014-01-14 Fixed bug#[8969](http://bugs.otrs.org/show_bug.cgi?id=8969) - FAQ module Language files installation fails (Kernel/Language permissions).
- 2014-01-10 Updated traditional Chinese translation.
Expand Down
2 changes: 2 additions & 0 deletions Kernel/System/State.pm
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ sub StateGetStatesByType {
}
}

@StateType = map { $Self->{DBObject}->Quote($_) } @StateType;

my $SQL = ''
. 'SELECT ts.id, ts.name, tst.name'
. ' FROM ticket_state ts, ticket_state_type tst'
Expand Down

0 comments on commit 0680603

Please sign in to comment.