Skip to content

Commit b1aeb10

Browse files
Merge pull request #8 from teraone/master
wrap query param with isset($uri["query"])
2 parents 72ea53d + 1a3b77a commit b1aeb10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Cloudinary.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ public static function config_from_url($cloudinary_url) {
2828
if ($cloudinary_url) {
2929
$uri = parse_url($cloudinary_url);
3030
$q_params = array();
31-
parse_str($uri["query"], $q_params);
31+
if (isset($uri["query"])) {
32+
parse_str($uri["query"], $q_params);
33+
}
3234
$config = array_merge($q_params, array(
3335
"cloud_name" => $uri["host"],
3436
"api_key" => $uri["user"],

0 commit comments

Comments
 (0)