Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse_bbc Undefined index: browser #5016

Closed
albertlast opened this issue Sep 21, 2018 · 5 comments · Fixed by #5025
Closed

parse_bbc Undefined index: browser #5016

albertlast opened this issue Sep 21, 2018 · 5 comments · Fixed by #5025

Comments

@albertlast
Copy link
Collaborator

albertlast commented Sep 21, 2018

Description

When parse_bbc is called by cronjob the $context['browser']['is_ie'] is not setted.
https://www.simplemachines.org/community/index.php?topic=562323.0

i guess

Steps to reproduce

  1. marke a post to notify
  2. create a post with bbc code

Environment (complete as necessary)

  • Version/Git revision:newest
  • Database Type:
  • Database Version:
  • PHP Version:

Additional information/references

stacktrace
grafik

https://github.com/SimpleMachines/SMF2.1/blob/8aafc85d03b52eb6780a5ff9ac61d4f7aad9d987/Sources/Subs.php#L1742

Possible introduce by @MissAllSunday
with pr 5fdfd87

@MissAllSunday
Copy link
Contributor

Yay for adding legacy BBC..... still cannot understand why people want those tags so badly..........

At this point, the is_ie thing should be completely erased, unless of course people starts to complaining about not supporting IE 6 in order to view their precious move and blink BB codes.............

@albertlast
Copy link
Collaborator Author

ther are many placed where this check is placed,
would you create pr with the removing of this?

@MissAllSunday
Copy link
Contributor

Or set every browser context related vars to null or false or any other falsy value when running in cli mode.

@albertlast
Copy link
Collaborator Author

Feel free to choose your way how to solve this.

@Sesquipedalian
Copy link
Member

The easiest fix would be to use !empty($context['browser']['is_ie']).

Sesquipedalian added a commit to Sesquipedalian/SMF that referenced this issue Sep 27, 2018
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
@Sesquipedalian Sesquipedalian added this to the RC 1 milestone Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants