Skip to content

Commit a0feab1

Browse files
committed
Properly escape arobase characters in YAML
1 parent 65c1c74 commit a0feab1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/fixtures/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
'credentials' => new Reference('a_service'), // '@a_service' would also work in a PHP config
2424
],
2525
'CloudSearchDomain' => [
26-
'endpoint' => 'http://search-with-some-subdomain.us-east-1.cloudsearch.amazonaws.com',
26+
'endpoint' => 'https://search-with-some-subdomain.us-east-1.cloudsearch.amazonaws.com',
2727
],
2828
]);
2929

tests/fixtures/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
secret="@@not-a-real-secret"
1212
/> <!-- secret will be escaped as '@not-a-real-secret '-->
1313
<aws:CloudSearchDomain
14-
endpoint="http://search-with-some-subdomain.us-east-1.cloudsearch.amazonaws.com"
14+
endpoint="https://search-with-some-subdomain.us-east-1.cloudsearch.amazonaws.com"
1515
/>
1616
<aws:DynamoDb region="us-west-2"/>
1717
<aws:S3 version="2006-03-01"/>

tests/fixtures/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ aws:
66
region: us-east-1
77
credentials:
88
key: not-a-real-key
9-
secret: @@not-a-real-secret # this will be escaped as '@not-a-real-secret'
9+
secret: "@@not-a-real-secret" # this will be escaped as '@not-a-real-secret'
1010
DynamoDb:
1111
region: us-west-2
1212
S3:
1313
version: '2006-03-01'
1414
Sqs:
15-
credentials: @a_service
15+
credentials: "@a_service"
1616
CloudSearchDomain:
17-
endpoint: http://search-with-some-subdomain.us-east-1.cloudsearch.amazonaws.com
17+
endpoint: https://search-with-some-subdomain.us-east-1.cloudsearch.amazonaws.com
1818

1919
services:
2020
a_service:
2121
class: Aws\Credentials\Credentials
2222
arguments:
2323
- a-different-fake-key
24-
- a-different-fake-secret
24+
- a-different-fake-secret

0 commit comments

Comments
 (0)