Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > TBDev
Reply
  #1  
Old 17-06-18, 06:05
Tedmorris's Avatar
Tedmorris Tedmorris is offline
Member
 
Join Date: Sep 2017
Posts: 9
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 17-06-18, 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 18-06-18, 02:47
Tedmorris's Avatar
Tedmorris Tedmorris is offline
Member
 
Join Date: Sep 2017
Posts: 9
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; 18-06-18 at 16:49.
Reply With Quote
  #4  
Old 18-06-18, 19:47
Krypto's Avatar
Krypto Krypto is offline
Administrator
 
Join Date: Jan 2008
P2P
Posts: 504
Default
I strongly suggest that you now change your Servers Login & Password details.
__________________


Please DO NOT "PM" me for Personal Support!! Keep all questions on the board so all can benefit.

Reply With Quote
  #5  
Old 18-06-18, 21:16
Tedmorris's Avatar
Tedmorris Tedmorris is offline
Member
 
Join Date: Sep 2017
Posts: 9
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 18-06-18, 22:27
thartley55's Avatar
thartley55 thartley55 is offline
Senior Member
 
Join Date: Mar 2012
P2P
Posts: 73
Default
lol
Reply With Quote
  #7  
Old 20-06-18, 16:02
Yupy's Avatar
Yupy Yupy is offline
Senior Member
 
Join Date: Nov 2008
P2P
Posts: 35
Default
You can also try:

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

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

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 11:26. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.