Skip to content

Commit b8ed5ba

Browse files
committed
Azure region added
1 parent 2977a44 commit b8ed5ba

File tree

5 files changed

+33
-3
lines changed

5 files changed

+33
-3
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ examples/index.php
1414
.DS_Store
1515
tmp/
1616
test/result.json
17-
stdout
17+
stdout
18+
build
19+
cache

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2012-2021 Contentstack (http://app.contentstack.com). All Rights Reserved
3+
Copyright (c) 2012-2022 Contentstack (http://app.contentstack.com). All Rights Reserved
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

SECURITY.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Security
2+
3+
Contentstack takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations.
4+
5+
If you believe you have found a security vulnerability in any Contentstack-owned repository, please report it to us as described below.
6+
7+
## Reporting Security Issues
8+
9+
**Please do not report security vulnerabilities through public GitHub issues.**
10+
11+
Send email to [[email protected]](mailto:[email protected]).
12+
13+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.
14+
15+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
16+
17+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
18+
* Full paths of source file(s) related to the manifestation of the issue
19+
* The location of the affected source code (tag/branch/commit or direct URL)
20+
* Any special configuration required to reproduce the issue
21+
* Step-by-step instructions to reproduce the issue
22+
* Proof-of-concept or exploit code (if possible)
23+
* Impact of the issue, including how an attacker might exploit the issue
24+
25+
This information will help us triage your report more quickly.
26+
27+
[https://www.contentstack.com/trust/](https://www.contentstack.com/trust/)

src/ContentstackRegion.php

+1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ class ContentstackRegion
2929
{
3030
const EU= "eu";
3131
const US= "us";
32+
const AZURE_NA= "azure-na";
3233
}

src/Stack/Stack.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function __construct(
5858
$config = array('region'=> '', 'branch'=> '', 'live_preview' => array())
5959
) {
6060
$previewHost = 'api.contentstack.io';
61-
if ($config && $config !== "undefined" && array_***_exists('region', $config) && $config['region'] !== "undefined" && $config['region'] =="eu" ) {
61+
if ($config && $config !== "undefined" && array_***_exists('region', $config) && $config['region'] !== "undefined" && $config['region'] !== "us" ) {
6262
$this->host = $config['region'].'-cdn.contentstack.com';
6363
$previewHost = $config['region'].'-api.contentstack.com';
6464
}

0 commit comments

Comments
 (0)