Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
aacaf7b8
Commit
aacaf7b8
authored
Dec 01, 2015
by
Leigh B Stoller
Browse files
Use DBQuoteSpecial() when updating os_info_versions.
parent
ae929c6b
Changes
1
Show whitespace changes
Inline
Side-by-side
db/OSinfo.pm.in
View file @
aacaf7b8
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment