Uh oh!
There was an error while loading. Please reload this page.
Avoid substr() error when strpos returns false - #21844
Conversation
"Exception: substr() expects parameter 3 to be int, bool given" can occur on Line 378 $mimePart = substr($icon, 0, strpos($icon, '-')); This happens, when '-' is not found and strpos returns false instead of an int. When this occurs, e.g., Activity hangs. Signed-off-by: lui87kw <lukas.ifflaender@uni-wuerzburg.de>
Signed-off-by: lui87kw <lukas.ifflaender@uni-wuerzburg.de>
MorrisJobke
commented
Jul 15, 2020
/backport to stable19 |
MorrisJobke
commented
Jul 15, 2020
/backport to stable18 |
MorrisJobke
commented
Jul 15, 2020
/backport to stable17 |
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
solracsf
commented
Nov 25, 2020
Shouldn't this be already shipped with 19.0.5? I'm facing this exact error at #24365 🤔 |
rullzer
commented
Nov 25, 2020
/backport to stable19 |
rullzer
commented
Nov 25, 2020
/backport to stable18 |
rullzer
commented
Nov 25, 2020
seems so. let me try to trigger it again |
"Exception: substr() expects parameter 3 to be int, bool given" can occur on Line 378 $mimePart = substr($icon, 0, strpos($icon, '-'));
This happens, when '-' is not found and strpos returns false instead of an int.
When this occurs, e.g., Activity hangs.
Signed-off-by: Lukas Iffländer lukas.ifflaender@uni-wuerzburg.de