We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34a4ae3 commit 5410eabCopy full SHA for 5410eab
lib/SparkPost/SparkPost.php
@@ -115,7 +115,7 @@ public function setConfig($settingsConfig) {
115
}
116
117
// Validate API key because its required
118
- if (!isset($settingsConfig['key']) || empty(trim($settingsConfig['key']))){
+ if (!isset($settingsConfig['key']) || !preg_match('/\S/', $settingsConfig['key'])){
119
throw new \Exception('You must provide an API key');
120
121
0 commit comments