Skip to content

[XenForoBridge] Fix error if message is < 70 chars#2707

Merged
dvikan merged 1 commit intoRSS-Bridge:masterfrom
Mynacol:fix-xenforo
May 8, 2022
Merged

[XenForoBridge] Fix error if message is < 70 chars#2707
dvikan merged 1 commit intoRSS-Bridge:masterfrom
Mynacol:fix-xenforo

Conversation

@Mynacol
Copy link
Contributor

@Mynacol Mynacol commented May 8, 2022

Using php 8.1.
Don't know how to make the change prettier.

At the time of writing, this occurs on the following thread:
https://forum.xda-developers.com/t/optimized-lineageos19-1-v4-0-23apr.4426575/

Fixes the following error:
ValueError: strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) in ./rss-bridge/bridges/XenForoBridge.php:272
Stack trace:
0 ./rss-bridge/bridges/XenForoBridge.php(272): strpos()
1 ./rss-bridge/bridges/XenForoBridge.php(146): XenForoBridge->extractThreadPostsV2()
2 ./rss-bridge/actions/DisplayAction.php(134): XenForoBridge->collectData()
3 ./rss-bridge/index.php(24): DisplayAction->execute()
4 {main}

At the time of writing, this occurs on the following thread:
https://forum.xda-developers.com/t/optimized-lineageos19-1-v4-0-23apr.4426575/

Fixes the following error:
ValueError: strpos(): Argument RSS-Bridge#3 ($offset) must be contained in argument RSS-Bridge#1 ($haystack) in ./rss-bridge/bridges/XenForoBridge.php:272
Stack trace:
0 ./rss-bridge/bridges/XenForoBridge.php(272): strpos()
1 ./rss-bridge/bridges/XenForoBridge.php(146): XenForoBridge->extractThreadPostsV2()
2 ./rss-bridge/actions/DisplayAction.php(134): XenForoBridge->collectData()
3 ./rss-bridge/index.php(24): DisplayAction->execute()
4 {main}
@github-actions
Copy link

github-actions bot commented May 8, 2022

Pull request artifacts

file last change
XenForo-current-context1 2022-05-08, 12:01:24
XenForo-pr-context1 2022-05-08, 12:01:24

@dvikan
Copy link
Contributor

dvikan commented May 8, 2022

Thanks.

@dvikan dvikan merged commit 36d11fd into RSS-Bridge:master May 8, 2022
@Mynacol Mynacol deleted the fix-xenforo branch June 5, 2022 09:19
IAM-marco pushed a commit to IAM-marco/rss-bridge that referenced this pull request Jun 17, 2022
At the time of writing, this occurs on the following thread:
https://forum.xda-developers.com/t/optimized-lineageos19-1-v4-0-23apr.4426575/

Fixes the following error:
ValueError: strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) in ./rss-bridge/bridges/XenForoBridge.php:272
Stack trace:
0 ./rss-bridge/bridges/XenForoBridge.php(272): strpos()
1 ./rss-bridge/bridges/XenForoBridge.php(146): XenForoBridge->extractThreadPostsV2()
2 ./rss-bridge/actions/DisplayAction.php(134): XenForoBridge->collectData()
3 ./rss-bridge/index.php(24): DisplayAction->execute()
4 {main}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants