Skip to content

Commit

Permalink
strtok
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Jan 31, 2024
1 parent 89c21a3 commit de89f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Zotero.php
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,9 @@ public static function url_simplify(string $url) : string {
['/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/'], $url);
$url = substr($url, 0, -1); // Remove the ending slash we added
$url = strtok($url, '?#');
$url = str_ireplace('https', 'http', $url);
/** @psalm-suppress UnusedFunctionCall */
@strtok('',''); // Free internal buffers with empty unused call
@strtok('',''); // Free internal buffers
$url = str_ireplace('https', 'http', $url);
return $url;
}

Expand Down

0 comments on commit de89f7b

Please sign in to comment.