Skip to content

Commit

Permalink
Fix deprecation warning reported by Andreas Mauser.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralflang committed Jan 12, 2024
1 parent 8d14ac1 commit 37dcb14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/Horde/Core/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
license:
identifier: LGPL-2.1
uri: http://www.horde.org/licenses/lgpl21
notes: |+
notes: |
[rla] Fix deprecation warning with strrpos reported on mailing list by Andreas Mauser.
|+
3.0.0alpha16:
api: 3.0.0alpha6
state:
Expand Down
4 changes: 4 additions & 0 deletions lib/Horde.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ public static function verifySignedUrl($data, $now = null)
$now = time();
}

if (!is_string($data)) {
return false;
}

$pos = strrpos($data, '&_h=');
if ($pos === false) {
return false;
Expand Down

0 comments on commit 37dcb14

Please sign in to comment.