Commit aacaf7b8 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Use DBQuoteSpecial() when updating os_info_versions.

parent ae929c6b
...@@ -454,8 +454,7 @@ sub Update($$) ...@@ -454,8 +454,7 @@ sub Update($$)
my $vers = $self->vers(); my $vers = $self->vers();
my $query = "update os_info_versions set ". my $query = "update os_info_versions set ".
join(",", map("$_='" . $argref->{$_} . "'", keys(%{$argref}))); join(",", map("$_=" . DBQuoteSpecial($argref->{$_}), keys(%{$argref})));
$query .= " where osid='$osid' and vers='$vers'"; $query .= " where osid='$osid' and vers='$vers'";
return -1 return -1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment