Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Text that wont display (http://www.bvlist.com/showthread.php?t=11655)

Tedmorris 17th June 2018 06:05

Text that wont display
 
Hi guys, im hoping someone can shed some light on this problem. I upgraded the DB to MariaDB 10 without problems but now it seems like the format_comment is giving me grief.

Its happening to posts on the forum and torrent descriptions that use quotation marks or commors but its weird because if reconstructed it seems ok its almost like if to many exclamation marks or commors or minus symbols are used it wont display the text, it puts it in the database though. I traced it to this function and removed it then all was as it should, i tried to update the function but it just wouldnt work. Now with the function removed when a post that would not apoear , appears and you try to edit it or quote it then its blank.

PHP Code:

    if ($strip_html)
        
$s htmlspecialchars$s ); 

Im stumpped as to whats going on. Anyone seen this problem before?

bigjohn 17th June 2018 12:17

Hit me up on pm and ill fix it for you

Tedmorris 18th June 2018 02:47

Yeah sure thing, i just msg you with the servers login and password :clown:

Bump: So ive changed the code to this...

PHP Code:

        if ($strip_html)
        
$s htmlspecialchars($sENT_COMPAT'ISO-8859-1'); 

All fixed

Krypto 18th June 2018 19:47

I strongly suggest that you now change your Servers Login & Password details.

Tedmorris 18th June 2018 21:16

Quote:

Originally Posted by Krypto (Post 52068)
I strongly suggest that you now change your Servers Login & Password details.

Notice the :clown: clown at the end of my comment. The guys got all but two posts here and been a member since May 2018 lol..there is no way in hell i would give him any login details. I didnt even PM him as it was fairly obvious to me what he was upto.

thartley55 18th June 2018 22:27

lol

Yupy 20th June 2018 16:02

You can also try:

Code:

if ($strip_html)
       
$s = htmlspecialchars_decode( $s ); 

Should do the trick.

Tedmorris 25th June 2018 11:46

Cheers m8, ill give it a try.

The actual problem is that the new setup with Centos 7, MariaDB 10 etc has resulted in a default_charset on php.ini of UTF-8 instead of ISO-8859-1, i am just not sure about changing the default charset in the php.ini and what affect this may have on the DB and performance because atm its working quite well besides the text issues here & there which are in quite a few placed but ive managed to hit them on the head one by one. edit.php, userdetails.php etc


All times are GMT +2. The time now is 11:52.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.