Page MenuHomePhabricator

D10646.diff
No OneTemporary

D10646.diff

diff --git a/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php b/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
--- a/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
+++ b/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
@@ -192,8 +192,10 @@
foreach ($queries as $query) {
$query = str_replace('{$NAMESPACE}', $this->namespace, $query);
$query = str_replace('{$CHARSET}', $charset, $query);
- $query = str_replace('{$COLLATE_TEXT}', $collate_text, $query);
- $query = str_replace('{$COLLATE_SORT}', $collate_sort, $query);
+ $escaped_text = qsprintf($conn, '%T', $collate_text);
+ $query = str_replace('{$COLLATE_TEXT}', $escaped_text, $query);
+ $escaped_text = qsprintf($conn, '%T', $collate_sort);
+ $query = str_replace('{$COLLATE_SORT}', $escaped_text, $query);
queryfx(
$conn,
'%Q',

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 10:26 AM (18 h, 14 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6921110
Default Alt Text
D10646.diff (966 B)

Event Timeline