Page MenuHomePhabricator
Authored By
Tgr
Feb 2 2023, 10:49 PM
Size
1 KB
Referenced Files
None
Subscribers
None

T328643-2.patch

From a547f09a4b119f76f932927eee92f618a231bb18 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gerg=C5=91=20Tisza?= <tgr.huwiki@gmail.com>
Date: Thu, 2 Feb 2023 14:41:51 -0800
Subject: [PATCH] SECURITY: Do not expose user timezones
Bug: T328643
Change-Id: I72ab6d5bbbce5f1f44adc5ee855121b88a04694e
---
includes/UserImpact/ComputedUserImpactLookup.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git includes/UserImpact/ComputedUserImpactLookup.php includes/UserImpact/ComputedUserImpactLookup.php
index 22d6cf4b..89ff9b43 100644
--- includes/UserImpact/ComputedUserImpactLookup.php
+++ includes/UserImpact/ComputedUserImpactLookup.php
@@ -229,7 +229,7 @@ class ComputedUserImpactLookup implements UserImpactLookup {
$queryBuilder->caller( __METHOD__ );
$userTimeCorrection = new UserTimeCorrection(
- $this->userOptionsLookup->getOption( $user, 'timecorrection' ),
+ 'System',
// Make the time correction object testing friendly - otherwise it would contain a
// current-time DateTime object.
new DateTime( '@' . ConvertibleTimestamp::time() ),
--
2.34.1

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10607971
Default Alt Text
T328643-2.patch (1 KB)

Event Timeline