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
|
@ -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…
Reference in a new issue