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

Use DBQuoteSpecial() when updating os_info_versions.

parent ae929c6b
......@@ -454,8 +454,7 @@ sub Update($$)
my $vers = $self->vers();
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'";
return -1
......
Markdown is supported
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