Skip to content

Commit

Permalink
Merge pull request #212 from honzito/fix-forupstream
Browse files Browse the repository at this point in the history
fix for php 8.2 - deprecated null parameter to explode()
  • Loading branch information
JamesHeinrich authored May 25, 2023
2 parents d5d307b + fc35047 commit be50bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpthumb.functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ public static function CleanUpURLencoding($url, $queryseperator='&') {
return $url;
}
$parsed_url = self::ParseURLbetter($url);
$pathelements = explode('/', $parsed_url['path']);
$pathelements = explode('/', (string)$parsed_url['path']);
$CleanPathElements = array();
$TranslationMatrix = array(' '=>'%20');
foreach ($pathelements as $key => $pathelement) {
Expand All @@ -718,7 +718,7 @@ public static function CleanUpURLencoding($url, $queryseperator='&') {
}
}

$queries = explode($queryseperator, $parsed_url['query']);
$queries = explode($queryseperator, (string)$parsed_url['query']);
$CleanQueries = array();
foreach ($queries as $key => $query) {
@list($param, $value) = explode('=', $query);
Expand Down

0 comments on commit be50bc6

Please sign in to comment.