-
Notifications
You must be signed in to change notification settings - Fork 175
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
1.8.0 Server webpage breaks if players have certain special characters. #971
Comments
I can't repro it on CS: S because these kind of chars is not correctly supported and just turn into a square box and I don't have L4D2 env to test. I believe this kind of issue can also happen in any plugin who uses SQL/Ajax. Otherwise, in a perfect fix on sbpp side, we will need support specials chars with ajax. |
Hello. Left4Dead 2 does not support this charset either, and their names turn to squares in L4D2 as well. The only issue seems to be the server Webpanel. I went ahead and banned myself (using this name). The MySQL database took it just fine, and the ban Webpanel handled it as well. As for the plugin. I would like to use that plugin as a last resort if this can't be fixed. Because a huge amount of the Left4Dead 2 playerbase uses special characters, but this is the first time I've had the server webpanel break from them. I would prefer not to disrupt my player's games by renaming probably dozens of people per day, since I have over a dozen servers open to the public that are constantly full. By default, the DB (I generated through install) has a DEFAULT_COLLATION_NAME of utf8mb4_general_ci. I had another person who runs a L4D2 server to ban themselves with this name, and their database represented it better since they seem to be using utf8mb4_unicode_ci. I'll try changing my DB to that so that the bans render, but I don't think MySQL is responsible for the server webpage. EDIT: Seems it's the SB++ plugin that is feeding a garbaged name into the database. Banning from the Webpanel seems to do everything just fine: |
@Hackmastr Maybe we should switch to |
I found another name by a user that breaks the Sourcebans webpanel. Unlike You can see in this screenshot, it seems the |
Do you have your dep correctly updates (file + sv side)? This commit was important. 2b017e8 |
Hello. I downloaded everything from the "release" section of the repo. Using "Latest" for the plugin, and the "webpanel only" under the 1.7 release. I went ahead and looked up what was inside my sourcebans/composer.json and compared it to that commit.
I guess I might be some versions behind since the commit shows:
I am unfortunately unsure how to update the Sourcebans webpanel. The "updater" folder in the github is from 10 months ago, with the updater.php being 2 years ago. I guess I would need to learn how to pull the entire repo and isolate the web section? |
I did a full reinstall of SB++ using the latest branch version. With composer madness and everything. Website currently says:
So the webpanel is running on the latest version. Plugins should also be the latest version as well. Both of these names: |
What are the steps to reproduce this issue?
What happens?
The SourceBans++ Webpanel is not able to retrieve information from the server. It is stuck "Querying Server Data" forever.
A popup comes up saying:
AJAX Call Failed!
Error: the XML response that was returned from the server is invalid. Received: Community Server #62/4]]>]]>bdp_bunker04Community Server #6
What were you expecting to happen?
Not an error, pop-up, and the server to query data. Server is fine. It is responsive to query requests from things not Sourcebans++. Players are playing just fine.
Any logs, error output, etc.?
Any other comments?
Please walk me through how to provide any logs if necessary. Steps to reproduce this issue is very easy.
What versions of software are you using?
Operating System: Ubuntu 24.04 LTS
SourceBans++ Version: 1.8.0
PHP Version: 8.3
MySQL Version: mysql Ver 15.1 Distrib 10.11.8-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
Link to your project: N/A?
Link to a phpinfo() output: N/A?
The text was updated successfully, but these errors were encountered: