mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Use %s, not %d, to encode a 64-bit integer for a query
Summary: Fixes T5982. Probably. I'm just guessing here but like 95% sure this will fix it and 99% sure it won't hurt/break anything. Test Plan: Still works on my 64-bit install, for what little that's worth. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T5982 Differential Revision: https://secure.phabricator.com/D10415
This commit is contained in:
parent
aaa08edb12
commit
4d3cc7b28d
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ final class PhabricatorNotificationClearController
|
|||
|
||||
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 @@ final class PhabricatorNotificationClearController
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue