Skip to content

Commit f3f72b6

Browse files
authored
Merge pull request #319 from Inchoo/bugfix/#254-acl-and-edge-dictionary-name-should-have-no-spaces
Added whitespace handling for ACL and dictionary creation
2 parents 2c72fd6 + 4a89e7a commit f3f72b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: Controller/Adminhtml/FastlyCdn/Edge/Acl/Create.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function execute()
9595
try {
9696
$activeVersion = $this->getRequest()->getParam('active_version');
9797
$activateVcl = $this->getRequest()->getParam('activate_flag');
98-
$aclName = $this->getRequest()->getParam('acl_name');
98+
$aclName = str_replace(' ', '_', $this->getRequest()->getParam('acl_name'));
9999
$service = $this->api->checkServiceDetails();
100100
$this->vcl->checkCurrentVersionActive($service->versions, $activeVersion);
101101
$currActiveVersion = $this->vcl->getCurrentVersion($service->versions);
@@ -107,7 +107,7 @@ public function execute()
107107
if (!$createAcl) {
108108
return $result->setData([
109109
'status' => false,
110-
'msg' => 'Failed to create Acl container.'
110+
'msg' => 'Failed to create ACL container.'
111111
]);
112112
}
113113

Diff for: Controller/Adminhtml/FastlyCdn/Edge/Dictionary/Create.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function execute()
9595
try {
9696
$activeVersion = $this->getRequest()->getParam('active_version');
9797
$activateVcl = $this->getRequest()->getParam('activate_flag');
98-
$dictionaryName = $this->getRequest()->getParam('dictionary_name');
98+
$dictionaryName = str_replace(' ', '_', $this->getRequest()->getParam('dictionary_name'));
9999
$service = $this->api->checkServiceDetails();
100100
$this->vcl->checkCurrentVersionActive($service->versions, $activeVersion);
101101
$currActiveVersion = $this->vcl->getCurrentVersion($service->versions);

0 commit comments

Comments
 (0)