Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15466922
D10415.id25062.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
989 B
Referenced Files
None
Subscribers
None
D10415.id25062.diff
View Options
diff --git a/src/applications/notification/controller/PhabricatorNotificationClearController.php b/src/applications/notification/controller/PhabricatorNotificationClearController.php
--- a/src/applications/notification/controller/PhabricatorNotificationClearController.php
+++ b/src/applications/notification/controller/PhabricatorNotificationClearController.php
@@ -5,7 +5,7 @@
public function processRequest() {
$request = $this->getRequest();
- $chrono_key = $request->getInt('chronoKey');
+ $chrono_key = $request->getStr('chronoKey');
$user = $request->getUser();
if ($request->isDialogFormPost()) {
@@ -14,7 +14,7 @@
queryfx(
$table->establishConnection('w'),
'UPDATE %T SET hasViewed = 1 '.
- 'WHERE userPHID = %s AND hasViewed = 0 and chronologicalKey <= %d',
+ 'WHERE userPHID = %s AND hasViewed = 0 and chronologicalKey <= %s',
$table->getTableName(),
$user->getPHID(),
$chrono_key);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 4, 10:52 AM (6 d, 2 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7699215
Default Alt Text
D10415.id25062.diff (989 B)
Attached To
Mode
D10415: Use %s, not %d, to encode a 64-bit integer for a query
Attached
Detach File
Event Timeline
Log In to Comment