Sniffer Amministratore


Registrato: Jul 20, 2003 Messaggi: 2967
Località: Verona
|
| Oggetto: [patch 3.3] fix Modulo News |
 |
|
PHP-Nuke 7.6 + patch 3.3
Questa fix risolve il problema della mancanza degli stripslashes nel modulo.
Aprire il file modules/News/admin/index.php
Cercare [riga 409-412]
| Codice: | $title = check_words(check_html($title, "nohtml"));
$hometext = check_words(check_html($hometext, ""));
$bodytext = check_words(check_html($bodytext, ""));
$notes = check_words(check_html($notes, "")); |
sostituire con
| Codice: | $title = stripslashes(check_words(check_html($title, "nohtml")));
$hometext = stripslashes(check_words(check_html($hometext, "")));
$bodytext = stripslashes(check_words(check_html($bodytext, "")));
$notes = stripslashes(check_words(check_html($notes, ""))); |
cercare [riga 664-667]
| Codice: | $uname = check_html($uname, "nohtml");
$subject = check_words(check_html($subject, "nohtml"));
$story = check_words(check_html($story, ""));
$storyext = check_words(check_html($storyext, "")); |
sostituire con
| Codice: | $uname = stripslashes(check_html($uname, "nohtml"));
$subject = stripslashes(check_words(check_html($subject, "nohtml")));
$story = stripslashes(check_words(check_html($story, "")));
$storyext = stripslashes(check_words(check_html($storyext, ""))); |
cercare [riga 862 -864]
| Codice: | $subject = check_words(check_html($subject,"nohtml"));
$hometext = check_words(check_html($hometext,""));
$bodytext = check_words(check_html($bodytext,"")); |
sostituire con
| Codice: | $subject = stripslashes(check_words(check_html($subject,"nohtml")));
$hometext = stripslashes(check_words(check_html($hometext,"")));
$bodytext = stripslashes(check_words(check_html($bodytext,""))); |
cercare [riga 1624-1626]
| Codice: | $subject = check_words(check_html($subject, "nohtml"));
$hometext = check_words(check_html($hometext, ""));
$bodytext = check_words(check_html($bodytext, "")); |
sostituire con
| Codice: | $subject = stripslashes(check_words(check_html($subject, "nohtml")));
$hometext = stripslashes(check_words(check_html($hometext, "")));
$bodytext = stripslashes(check_words(check_html($bodytext, ""))); |
cercare
subito prima aggiungere
| Codice: | | //Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com |
----------------------------------------------------------------------------
Aprire il file modules/News/print.php
cercare [riga 31]
| Codice: | | $title = check_words(check_html($row['title'], "nohtml")); |
sostituire con
| Codice: | | $title = stripslashes(check_words(check_html($row['title'], "nohtml"))); |
cercare [riga 33-34]
| Codice: | $hometext = check_words(check_html($row['hometext'], ""));
$bodytext = check_words(check_html($row['bodytext'], "")); |
sostituire con
| Codice: | $hometext = stripslashes(check_words(check_html($row['hometext'], "")));
$bodytext = stripslashes(check_words(check_html($row['bodytext'], ""))); |
cercare [riga 36]
| Codice: | | $notes = check_words(check_html($row['notes'], "")); |
sostituire con
| Codice: | $notes = stripslashes(check_words(check_html($row['notes'], "")));
|
cercare [riga 38]
| Codice: | $topictext = check_words(check_html($row2['topictext'], "nohtml"));
|
sostituire con
| Codice: | | $topictext = stripslashes(check_words(check_html($row2['topictext'], "nohtml"))); |
cercare
subito prima aggiungere
| Codice: | | //Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com |
----------------------------------------------------------------------------
Aprire il file modules/News/friend.php
cercare [riga 38]
| Codice: | | $title = check_words(check_html($row['title'], "nohtml")); |
sostituire con
| Codice: | | $title = stripslashes(check_words(check_html($row['title'], "nohtml"))); |
cercare [riga 73]
| Codice: | | $title = check_words(check_html($row['title'], "nohtml")); |
sostituire con
| Codice: | | $title = stripslashes(check_words(check_html($row['title'], "nohtml"))); |
cercare [riga 77]
| Codice: | | $topictext = check_words(check_html($row2['topictext'], "nohtml")); |
sostituire con
| Codice: | | $topictext = stripslashes(check_words(check_html($row2['topictext'], "nohtml"))); |
cercare [riga 89]
| Codice: | | $title = check_words(check_html($title, "nohtml")); |
sostituire con
| Codice: | | $title = stripslashes(check_words(check_html($title, "nohtml"))); |
cercare
subito prima inserire
| Codice: | | //Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com |
----------------------------------------------------------------------------
Aprire il file modules/News/index.php
cercare [riga 53]
| Codice: | | $topic_title = check_words(check_html($row_a['topictext'], "nohtml")); |
sostituire con
| Codice: | | $topic_title = stripslashes(check_words(check_html($row_a['topictext'], "nohtml"))); |
cercare [riga 81]
| Codice: | | $informant = check_html($row['informant'], "nohtml"); |
sostituire con
| Codice: | | $informant = stripslashes(check_html($row['informant'], "nohtml")); |
cercare [riga 88]
| Codice: | | $cattitle = check_words(check_html($row2['title'], "nohtml")); |
sostituire con
| Codice: | | $cattitle = stripslashes(check_words(check_html($row2['title'], "nohtml"))); |
cercare [riga 114]
| Codice: | | $title1 = check_words(check_html($row3['title'], "nohtml")); |
sostituisci con
| Codice: | | $title1 = stripslashes(check_words(check_html($row3['title'], "nohtml"))); |
cercare
subito prima aggiungere
| Codice: | | //Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com |
----------------------------------------------------------------------------
Aprire il file modules/News/article.php
cercare [riga 65]
| Codice: | | $informant = check_words(check_html($row['informant'], "nohtml")); |
sostituire con
| Codice: | | $informant = stripslashes(check_words(check_html($row['informant'], "nohtml"))); |
cercare [riga 104]
| Codice: | | $title1 = check_words(check_html($row2['title'], "nohtml")); |
sostituire con
| Codice: | | $title1 = stripslashes(check_words(check_html($row2['title'], "nohtml"))); |
cercare [riga 125]
| Codice: | | $pollTitle = check_words(check_html($row3['pollTitle'], "nohtml")); |
sostituire con
| Codice: | | $pollTitle = stripslashes(check_words(check_html($row3['pollTitle'], "nohtml"))); |
cercare [riga 195]
| Codice: | | $ttitle = check_words(check_html($row9['title'], "nohtml")); |
sostituire con
| Codice: | | $ttitle = stripslashes(check_words(check_html($row9['title'], "nohtml"))); |
cercare
subito prima aggiungere
| Codice: | | //Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com |
----------------------------------------------------------------------------
Aprire il file modules/News/comment.php
cercare [riga 615-616]
| Codice: | $subject = check_words(check_html($row['subject'], "nohtml"));
$comment = check_words(check_html($row['comment'], "")); |
sostituire con
| Codice: | $subject = stripslashes(check_words(check_html($row['subject'], "nohtml")));
$comment = stripslashes(check_words(check_html($row['comment'], ""))); |
cercare [riga 621-625]
| Codice: | $subject = check_words(check_html($row2['title'], "nohtml"));
$temp_comment = check_words(check_html($row2['hometext'], ""));
$comment2 = check_words(check_html($row2['bodytext'], ""));
$name = check_words(check_html($row2['informant'], "nohtml"));
$notes = check_words(check_html($row2['notes'], "")); |
sostituire con
| Codice: | $subject = stripslashes(check_words(check_html($row2['title'], "nohtml")));
$temp_comment = stripslashes(check_words(check_html($row2['hometext'], "")));
$comment2 = stripslashes(check_words(check_html($row2['bodytext'], "")));
$name = check_words(check_html($row2['informant'], "nohtml"));
$notes = stripslashes(check_words(check_html($row2['notes'], ""))); |
cercare [riga 656]
| Codice: | | $subject = check_words(check_html($row3['title'], "nohtml")); |
sostituire con
| Codice: | | $subject = stripslashes(check_words(check_html($row3['title'], "nohtml"))); |
cercare [riga 659]
| Codice: | $subject = check_words(check_html($row4['subject'], "nohtml"));
|
sostituire con
| Codice: | | $subject = stripslashes(check_words(check_html($row4['subject'], "nohtml"))); |
cercare [riga 735-736]
| Codice: | $subject = check_words(check_html($subject, "nohtml"));
$comment = check_words(check_html($comment, "")); |
sostituire con
| Codice: | $subject = stripslashes(check_words(check_html($subject, "nohtml")));
$comment = stripslashes(check_words(check_html($comment, ""))); |
cercare
subito prima aggiungere
| Codice: | | //Fix (stripslashes) By Sniffer 22/04/2007 - http://www.webother.com |
Fine.
_________________ Non inviatemi pm con richieste di aiuto grazie.
Su questo forum solo gli utenti registrati possono vedere i links! Registrati o fai il login |
|
|