wp-post-by-email icon indicating copy to clipboard operation
wp-post-by-email copied to clipboard

[Patch] Missing second arg on substr

Open bagley opened this issue 10 years ago • 1 comments

In the file 'post-by-email/include/Horde/Mime/Part.php' on line 2148 it has the wrong number of arguments:

$id = substr($id, $base_pos);

Since it appears we are checking from the beginning of the string, should be:

$id = substr($id, 0, $base_pos);

Great plugin!

bagley avatar Jun 14 '14 04:06 bagley

Hi, thanks for this report. What version of PHP did that happen with?

codebykat avatar Mar 08 '15 05:03 codebykat