Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 7th March 2013, 14:19
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default I have a problem in description ...
Hi ... In torrent description I want to write " " in details.php instead of going out " " it show this >>
"

I searched in bittorrent.php and found that >>
PHP Code:
return str_replace(array("&gt;""&lt;""&quot;""&amp;"), array(">""<""\"""&"), $var); 
I erese I deleted "&quot;" and "\"" but no change... here is a screen shot
Click the image to open in full size.
Reply With Quote
  #2  
Old 7th March 2013, 16:10
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
lol use htmlspecialchars_decode

http://us3.php.net/manual/en/functio...ars-decode.php
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 7th March 2013, 18:38
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default
Thanks but how I can to repair?
This is the code >

PHP Code:
function unsafeChar($var)
{
    return 
str_replace(array("&gt;""&lt;""&quot;""&amp;"), array(">""<""\"""&"), $var);
}
function 
safeChar($var)
{
    return 
htmlspecialchars(unsafeChar($var));
}
function 
sqlwildcardesc($x) {
    return 
str_replace(array("%","_"), array("\\%","\\_"), mysql_real_escape_string($x)); 

Last edited by Krypto; 8th March 2013 at 18:01. Reason: Stop Quoting the post directly above yours, USE the Post Reply NOT Quote
Reply With Quote
  #4  
Old 7th March 2013, 19:36
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
use htmlspecialchars_decode in detales not take torrent
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #5  
Old 7th March 2013, 19:40
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default
Ok but I have it in Description
PHP Code:
      if (!empty($row["descr"]))
         
tr("Description"str_replace(array("\n""  "), array("<br>\n""&nbsp; "), format_comment(htmlspecialchars($row["descr"]))), 1); 

Last edited by Krypto; 8th March 2013 at 18:01. Reason: Stop Quoting the post directly above yours, USE the Post Reply NOT Quote
Reply With Quote
  #6  
Old 7th March 2013, 23:44
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
lmao
PHP Code:
      if (!empty($row["descr"]))
         
tr("Description"str_replace(array("\n""  "), array("<br>\n""&nbsp; "), format_comment(htmlspecialchars($row["descr"]))), 1); 
should be
PHP Code:
      if (!empty($row["descr"]))
         
tr("Description"str_replace(array("\n""  "), array("<br>\n""&nbsp; "), format_comment(htmlspecialchars_decode($row["descr"]))), 1); 
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
The Following User Says Thank You to joeroberts For This Useful Post:
bestlap (8th March 2013)
  #7  
Old 8th March 2013, 08:54
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default
Thank YOU !Now everything is fine

Last edited by Krypto; 8th March 2013 at 18:01. Reason: Stop Quoting the post directly above yours, USE the Post Reply NOT Quote
Reply With Quote
Reply

Tags
description , problem

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