Sniffer Amministratore


Registrato: Jul 20, 2003 Messaggi: 2981
Località: Verona
|
| Oggetto: [patch 3.5] fix modulo Topics |
 |
|
PHP-Nuke 7.6 + patch 3.5 bug stripslashes e elenco topics vuoto
Questa fix risolve un piccolo bug presente nella patch 3.5 nel modulo Topics
Aprire il file modules/Topics/index.php
cercare [riga 29]
| Codice: | | $sql = "SELECT t.topicid, t.topicimage, t.topictext, count(s.sid) AS stories, SUM(s.counter) AS reads FROM ".$prefix."_topics t LEFT JOIN ".$prefix."_stories s ON (s.topic = t.topicid) GROUP BY t.topicid, t.topicimage, t.topictext ORDER BY t.topictext"; |
modificare così
| Codice: | | $sql = "SELECT t.topicid, t.topicimage, t.topictext, count(s.sid) AS stories FROM ".$prefix."_topics t LEFT JOIN ".$prefix."_stories s ON (s.topic = t.topicid) GROUP BY t.topicid, t.topicimage, t.topictext ORDER BY t.topictext"; |
cercare [riga 65]
| Codice: | | echo "<img src=\"images/arrow.gif\" border=\"0\" alt=\"\" /> $cat_link<a href=\"modules.php?name=News&file=article&sid=".intval($row2['sid'])."\">".htmlentities($row2['title'])."</a><br>"; |
modificare così
| Codice: | | echo "<img src=\"images/arrow.gif\" border=\"0\" alt=\"\" /> $cat_link<a href=\"modules.php?name=News&file=article&sid=".intval($row2['sid'])."\">".stripslashes(htmlentities($row2['title']))."</a><br>"; |
---------------------------------------------------------
Aprire il file modules/Topics/admin/index.php
Cercare [riga 53]
| Codice: | $topicname = check_html($row['topicname'], "nohtml");
$topicimage = check_html($row['topicimage'], "nohtml");
$topictext = check_html($row['topictext'], "nohtml"); |
modificare così
| Codice: | $topicname = stripslashes(check_html($row['topicname'], "nohtml"));
$topicimage = stripslashes(check_html($row['topicimage'], "nohtml"));
$topictext = stripslashes(check_html($row['topictext'], "nohtml")); |
cercare [riga 113]
| Codice: | | $topicname = htmlentities(check_html($row['topicname'], "nohtml"), ENT_QUOTES); |
modificare così
| Codice: | | $topicname = stripslashes(htmlentities(check_html($row['topicname'], "nohtml"), ENT_QUOTES)); |
cercare [riga 115]
| Codice: | | $topictext = stripslashes(htmlentities(check_html($row['topictext'], "nohtml"), ENT_QUOTES)); |
Fine.
Fix by Sniffer
_________________ Non inviatemi pm con richieste di aiuto grazie.
Su questo forum solo gli utenti registrati possono vedere i links! Registrati o fai il login |
|
|