Page MenuHomePhabricator

D7725.id17443.diff
No OneTemporary

D7725.id17443.diff

Index: src/infrastructure/storage/lisk/LiskDAO.php
===================================================================
--- src/infrastructure/storage/lisk/LiskDAO.php
+++ src/infrastructure/storage/lisk/LiskDAO.php
@@ -1244,7 +1244,17 @@
$columns = array_keys($data);
foreach ($data as $key => $value) {
- $data[$key] = qsprintf($conn, '%ns', $value);
+ try {
+ $data[$key] = qsprintf($conn, '%ns', $value);
+ } catch (AphrontQueryParameterException $parameter_exception) {
+ throw new PhutilProxyException(
+ pht(
+ "Unable to insert or update object of class %s, field '%s' ".
+ "has a nonscalar value.",
+ get_class($this),
+ $key),
+ $parameter_exception);
+ }
}
$data = implode(', ', $data);

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 22, 10:19 PM (3 w, 16 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6716887
Default Alt Text
D7725.id17443.diff (817 B)

Event Timeline