Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/Codeception/Module/REST.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
*
* ## JSONPath
*
* [JSONPath](http://goessner.net/articles/JsonPath/) is the equivalent to XPath, for querying JSON data structures.
* Here's an [Online JSONPath Expressions Tester](http://jsonpath.curiousconcept.com/)
* [JSONPath](https://goessner.net/articles/JsonPath/) is the equivalent to XPath, for querying JSON data structures.
* Here's an [Online JSONPath Expressions Tester](https://jsonpath.curiousconcept.com/)
*
* ## Public Properties
*
Expand Down Expand Up @@ -465,7 +465,7 @@ public function amAWSAuthenticated(array $additionalAWSConfig = []): void
* keys: name, type, error, size, tmp_name (pointing to the real file path). Each key works
* as the "name" attribute of a file input field.
*
* @see http://php.net/manual/en/features.file-upload.post-method.php
* @see https://php.net/manual/en/features.file-upload.post-method.php
* @see codecept_data_dir()
* @part json
* @part xml
Expand Down Expand Up @@ -583,7 +583,7 @@ public function send(string $method, string $url, $params = [], array $files = [
*
* @param array $linkEntries (entry is array with keys "uri" and "link-param")
*
* @link http://tools.ietf.org/html/rfc2068#section-19.6.2.4
* @link https://tools.ietf.org/html/rfc2068#section-19.6.2.4
*
* @author samva.ua@gmail.com
*/
Expand Down Expand Up @@ -612,7 +612,7 @@ private function setHeaderLink(array $linkEntries): void
*
* @param array $linkEntries (entry is array with keys "uri" and "link-param")
*
* @link http://tools.ietf.org/html/rfc2068#section-19.6.2.4
* @link https://tools.ietf.org/html/rfc2068#section-19.6.2.4
*
* @author samva.ua@gmail.com
* @part json
Expand All @@ -628,7 +628,7 @@ public function sendLink(string $url, array $linkEntries): void
* Sends UNLINK request to given uri.
*
* @param array $linkEntries (entry is array with keys "uri" and "link-param")
* @link http://tools.ietf.org/html/rfc2068#section-19.6.2.4
* @link https://tools.ietf.org/html/rfc2068#section-19.6.2.4
* @author samva.ua@gmail.com
* @part json
* @part xml
Expand Down Expand Up @@ -1245,7 +1245,7 @@ public function dontSeeResponseContainsJson(array $json = []): void
* * `integer:<{val}` - checks that integer is lower than {val} (works with float and string types too).
* * `string:url` - checks that value is valid url.
* * `string:date` - checks that value is date in JavaScript format: https://weblog.west-wind.com/posts/2014/Jan/06/JavaScript-JSON-Date-Parsing-and-real-Dates
* * `string:email` - checks that value is a valid email according to http://emailregex.com/
* * `string:email` - checks that value is a valid email according to https://emailregex.com/
* * `string:regex({val})` - checks that string matches a regex provided with {val}
*
* This is how filters can be used:
Expand All @@ -1265,7 +1265,7 @@ public function dontSeeResponseContainsJson(array $json = []): void
* ```
*
* You can also add custom filters by using `{@link JsonType::addCustomFilter()}`.
* See [JsonType reference](http://codeception.com/docs/reference/JsonType).
* See [JsonType reference](https://codeception.com/docs/reference/JsonType).
*
* @part json
* @see JsonType
Expand Down
2 changes: 1 addition & 1 deletion src/Codeception/Util/JsonType.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ protected function matchFilter(string $filter, string $value)
);
}

if ($filter === 'email') { // from http://emailregex.com/
if ($filter === 'email') { // from https://emailregex.com/
// @codingStandardsIgnoreStart
return preg_match('#^(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){255,})(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){65,}@)(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22))(?:\.(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-[a-z0-9]+)*\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-[a-z0-9]+)*)|(?:\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4]\d)|(?:1\d{2})|(?:[1-9]?\d))(?:\.(?:(?:25[0-5])|(?:2[0-4]\d)|(?:1\d{2})|(?:[1-9]?\d))){3}))\]))$#iD',
$value);
Expand Down