mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-31 00:48:21 +01:00
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:
parent
d725dedb1e
commit
449da36c2f
1 changed files with 3 additions and 1 deletions
|
@ -114,7 +114,9 @@ abstract class DiffusionBlameQuery extends DiffusionQuery {
|
||||||
continue;
|
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;
|
return $map;
|
||||||
|
|
Loading…
Add table
Reference in a new issue