Skip to content

Commit

Permalink
Prevent infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
bsod85 committed Mar 2, 2023
1 parent 4d3c828 commit 99a567c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Horde/Mime/Part.php
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,7 @@ protected static function _findBoundary($text, $pos, $boundary,
/* Boundary needs to appear at beginning of string or right after
* a LF. */
if (($pos != 0) && ($text[$pos - 1] != "\n")) {
$pos++;
continue;
}

Expand Down

0 comments on commit 99a567c

Please sign in to comment.