Page MenuHomePhabricator

D8559.id.diff
No OneTemporary

D8559.id.diff

diff --git a/src/applications/harbormaster/step/HarbormasterHTTPRequestBuildStepImplementation.php b/src/applications/harbormaster/step/HarbormasterHTTPRequestBuildStepImplementation.php
--- a/src/applications/harbormaster/step/HarbormasterHTTPRequestBuildStepImplementation.php
+++ b/src/applications/harbormaster/step/HarbormasterHTTPRequestBuildStepImplementation.php
@@ -59,10 +59,18 @@
return false;
}
- if ($settings['method'] === null || $settings['method'] != '' &&
- !in_array ($settings['method'],
- array('GET', 'PUT', 'DELETE', 'POST'))) {
- return false;
+ $methods = array(
+ 'GET' => true,
+ 'POST' => true,
+ 'DELETE' => true,
+ 'PUT' => true,
+ );
+
+ $method = idx($settings, 'method');
+ if (strlen($method)) {
+ if (empty($methods[$method])) {
+ return false;
+ }
}
return true;

File Metadata

Mime Type
text/plain
Expires
Oct 18 2024, 7:21 PM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6728392
Default Alt Text
D8559.id.diff (909 B)

Event Timeline