Skip to content

Commit

Permalink
Issue CollaboraOnline#56: Fix strStartsWith() by using strpos() inste…
Browse files Browse the repository at this point in the history
…ad of strrpos().
  • Loading branch information
donquixote committed Nov 12, 2024
1 parent 2fe1584 commit 5a0d2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cool/CoolRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function getWopiSrcUrl($discovery_parsed, $mimetype) {
* @see str_starts_with()
*/
function strStartsWith($haystack, $needle) {
return strrpos($haystack, $needle) === 0;
return strpos($haystack, $needle) === 0;
}

/**
Expand Down

0 comments on commit 5a0d2f4

Please sign in to comment.