Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 17th June 2018, 06:05
Tedmorris's Avatar
Tedmorris Tedmorris is offline
Senior Member
 
Join Date: Sep 2017
Posts: 62
Default 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?
Reply With Quote
  #2  
Old 17th June 2018, 12:17
bigjohn's Avatar
bigjohn bigjohn is offline
Member
 
Join Date: May 2018
Posts: 2
Default
Hit me up on pm and ill fix it for you
Reply With Quote
  #3  
Old 18th June 2018, 02:47
Tedmorris's Avatar
Tedmorris Tedmorris is offline
Senior Member
 
Join Date: Sep 2017
Posts: 62
Default
Yeah sure thing, i just msg you with the servers login and password

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

PHP Code:
        if ($strip_html)
        
$s htmlspecialchars($sENT_COMPAT'ISO-8859-1'); 
All fixed

Last edited by Tedmorris; 18th June 2018 at 16:49.
Reply With Quote
  #4  
Old 18th June 2018, 19:47
Krypto's Avatar
Krypto Krypto is offline
Retired from BVList
 
Join Date: Jan 2008
P2P
Posts: 510
Default
I strongly suggest that you now change your Servers Login & Password details.
Reply With Quote
  #5  
Old 18th June 2018, 21:16
Tedmorris's Avatar
Tedmorris Tedmorris is offline
Senior Member
 
Join Date: Sep 2017
Posts: 62
Default
Quote:
Originally Posted by Krypto View Post
I strongly suggest that you now change your Servers Login & Password details.
Notice the 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.
Reply With Quote
  #6  
Old 18th June 2018, 22:27
thartley55's Avatar
thartley55 thartley55 is offline
Senior Member
 
Join Date: Mar 2012
P2P
Posts: 204
Default
lol
Reply With Quote
  #7  
Old 20th June 2018, 16:02
Yupy's Avatar
Yupy Yupy is offline
Senior Member
 
Join Date: Nov 2008
P2P
Posts: 36
Default
You can also try:

Code:
if ($strip_html) 
        $s = htmlspecialchars_decode( $s );  
Should do the trick.

Last edited by Yupy; 20th June 2018 at 16:02. Reason: typo
Reply With Quote
  #8  
Old 25th June 2018, 11:46
Tedmorris's Avatar
Tedmorris Tedmorris is offline
Senior Member
 
Join Date: Sep 2017
Posts: 62
Default
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
Reply With Quote
Reply

Tags
display , text

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 09:10. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.