Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   I have a problem in description ... (http://www.bvlist.com/showthread.php?t=8965)

bestlap 7th March 2013 14:19

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(">""<"""", "&"), array(">", "<", "\"""&"), $var); 

I erese I deleted """ and "\"" but no change... here is a screen shot
http://i.imgur.com/tvjC99a.jpg

joeroberts 7th March 2013 16:10

lol use htmlspecialchars_decode

http://us3.php.net/manual/en/functio...ars-decode.php

bestlap 7th March 2013 18:38

Thanks but how I can to repair?
This is the code >

PHP Code:

function unsafeChar($var)
{
    return 
str_replace(array(">""<"""", "&"), array(">", "<", "\"""&"), $var);
}
function 
safeChar($var)
{
    return 
htmlspecialchars(unsafeChar($var));
}
function 
sqlwildcardesc($x) {
    return 
str_replace(array("%","_"), array("\\%","\\_"), mysql_real_escape_string($x)); 


joeroberts 7th March 2013 19:36

use htmlspecialchars_decode in detales not take torrent

bestlap 7th March 2013 19:40

Ok but I have it in Description
PHP Code:

      if (!empty($row["descr"]))
         
tr("Description"str_replace(array("\n""  "), array("\n""&nbsp; "), format_comment(htmlspecialchars($row["descr"]))), 1); 

:suicide:

joeroberts 7th March 2013 23:44

lmao
PHP Code:

      if (!empty($row["descr"]))
         
tr("Description"str_replace(array("\n""  "), array("\n""&nbsp; "), format_comment(htmlspecialchars($row["descr"]))), 1); 

should be
PHP Code:

      if (!empty($row["descr"]))
         
tr("Description"str_replace(array("\n""  "), array("\n""&nbsp; "), format_comment(htmlspecialchars_decode($row["descr"]))), 1); 


bestlap 8th March 2013 08:54

Thank YOU !Now everything is fine :drink::drink::drink:


All times are GMT +2. The time now is 22:32.

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