Page MenuHomePhabricator

D8559.diff
No OneTemporary

D8559.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 19 2024, 10:38 AM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6728392
Default Alt Text
D8559.diff (909 B)

Event Timeline