mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-23 06:25:38 +00:00
fix another place needs quotes for mysql
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2255 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -709,11 +709,11 @@ sub setAttribs
|
||||
{
|
||||
if (ref($keypairs{$_}))
|
||||
{
|
||||
$cmd .= $_ . " = '" . $keypairs{$_}->[0] . "' AND ";
|
||||
$cmd .= "\"$_\"" . " = '" . $keypairs{$_}->[0] . "' AND ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$cmd .= $_ . " = '" . $keypairs{$_} . "' AND ";
|
||||
$cmd .= "\"$_\"" . " = '" . $keypairs{$_} . "' AND ";
|
||||
}
|
||||
}
|
||||
$cmd =~ s/ AND \z//;
|
||||
|
Reference in New Issue
Block a user