1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 01:02:42 +01:00

Fix an issue where versus diffs tried to load invalid changeset IDs

Auditors: btrahan
This commit is contained in:
epriestley 2015-04-21 15:38:52 -07:00
parent 1858d2aa66
commit c509e80a74

View file

@ -494,8 +494,8 @@ final class DifferentialRevision extends DifferentialDAO
$old_ids = $request->getStr('old', idx($render_data, 'old'));
$new_ids = $request->getStr('new', idx($render_data, 'new'));
$old_ids = explode(',', $old_ids);
$new_ids = explode(',', $new_ids);
$old_ids = array_filter(explode(',', $old_ids));
$new_ids = array_filter(explode(',', $new_ids));
$type_inline = DifferentialTransaction::TYPE_INLINE;
$changeset_ids = array_merge($old_ids, $new_ids);