Skip to content

Conversation

@bladewing
Copy link
Contributor

"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 [email protected]

bladewing and others added 2 commits July 15, 2020 10:18
"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 <[email protected]>
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code makes sense 👍

@MorrisJobke
Copy link
Member

/backport to stable19

@MorrisJobke
Copy link
Member

/backport to stable18

@MorrisJobke
Copy link
Member

/backport to stable17

@MorrisJobke MorrisJobke merged commit cc258ad into nextcloud:master Jul 15, 2020
@welcome
Copy link

welcome bot commented Jul 15, 2020

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
Copy link
Member

Shouldn't this be already shipped with 19.0.5? I'm facing this exact error at #24365 🤔
Maybe the @MorrisJobke backports hadn't been made?

@rullzer
Copy link
Member

rullzer commented Nov 25, 2020

/backport to stable19

@rullzer
Copy link
Member

rullzer commented Nov 25, 2020

/backport to stable18

@rullzer
Copy link
Member

rullzer commented Nov 25, 2020

Shouldn't this be already shipped with 19.0.5? I'm facing this exact error at #24365 thinking
Maybe the @MorrisJobke backports hadn't been made?

seems so. let me try to trigger it again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants