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

Update cloudbridge-mattermost.php #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

castillo-n
Copy link

This property on this class was being used but never declared.
Thanks!

This property on this class was being used but never declared.
@castillo-n
Copy link
Author

I am running php 8.3 and this missing property make php scream at me :) (it also shows as an error on php 8.2)

The call back url is not documented anywhere. I talked to a coworker doing wp themes and said they dropped this plugin because they couldn't figure out where they supposed to use as the callback. I went on searching for it and after a few tries I got the right url. It doesn't hurt to put it out there to make it easier for anyone struggling with the same.
line 218 
  I commented out because $e is not available at this point in the application. To use it should be set or have a try catch but this elseif isn't included in one. 
line 221, I replaced the filter as in php 8.3 that filter doesn't exists anymore. In its place I put FILTER_SANITIZE_FULL_SPECIAL_CHARS. Although I didn't code this plugin, I imagine the behavior is similar to what the programmer who coded this lines wanted to have. Sanitization.
@joho1968 joho1968 self-assigned this Jan 23, 2025
@joho1968 joho1968 added enhancement New feature or request good first issue Good for newcomers labels Jan 23, 2025
@joho1968 joho1968 self-requested a review January 23, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants