mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
parent
56947c9962
commit
f52c02ae30
@ -24,6 +24,10 @@ class OneDBLive
|
||||
|
||||
def db_escape(string)
|
||||
escaped = string.gsub("'", "''")
|
||||
|
||||
# Provision documents are already scaped
|
||||
return escaped if string.include?("\"ar_template\":\"AR=[")
|
||||
|
||||
escaped.gsub('\\') { '\\\\' }
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user