Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14397364
D10646.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
966 B
Referenced Files
None
Subscribers
None
D10646.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D10646: Storage - fix more query errors by escaping collate_text and collate_sort
Attached
Detach File
Event Timeline
Log In to Comment