Page MenuHomePhabricator

D11473.diff
No OneTemporary

D11473.diff

diff --git a/src/applications/diffusion/request/DiffusionRequest.php b/src/applications/diffusion/request/DiffusionRequest.php
--- a/src/applications/diffusion/request/DiffusionRequest.php
+++ b/src/applications/diffusion/request/DiffusionRequest.php
@@ -99,7 +99,17 @@
$object = self::newFromCallsign($callsign, $request->getUser());
$use_branches = $object->supportsBranches();
- $parsed = self::parseRequestBlob(idx($data, 'dblob'), $use_branches);
+
+ if (isset($data['dblob'])) {
+ $parsed = self::parseRequestBlob(idx($data, 'dblob'), $use_branches);
+ } else {
+ $parsed = array(
+ 'commit' => idx($data, 'commit'),
+ 'path' => idx($data, 'path'),
+ 'line' => idx($data, 'line'),
+ 'branch' => idx($data, 'branch'),
+ );
+ }
$object->setUser($request->getUser());
$object->initializeFromDictionary($parsed);

File Metadata

Mime Type
text/plain
Expires
Oct 19 2024, 6:09 PM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6724118
Default Alt Text
D11473.diff (895 B)

Event Timeline