Use a path digest when building blame cache keys
Keys have a maximum length of 128, and long paths could cause key lengths to exceed this. Auditors: chad
This commit is contained in:
@@ -114,7 +114,9 @@ abstract class DiffusionBlameQuery extends DiffusionQuery {
|
||||
continue;
|
||||
}
|
||||
|
||||
$map[$path] = "blame({$repository_id}, {$identifier}, {$path}, raw)";
|
||||
$path_hash = PhabricatorHash::digestForIndex($path);
|
||||
|
||||
$map[$path] = "blame({$repository_id}, {$identifier}, {$path_hash}, raw)";
|
||||
}
|
||||
|
||||
return $map;
|
||||
|
||||
Reference in New Issue
Block a user