Subscribe Today
You are not subscriber of DaDaNuke | Making PHP-Nuke Better!. You can subscribe from here now!
Who's Online
There are currently, 14 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Total Hits
We received5583710 page views since September 2005
DaDaNuke :: View topic - [BUG] Content Module Admin Edit Double Variable Removal
View previous topic :: View next topic
Author
Message
emilacosta dadaAdmin Joined: Sep 19, 2005 Posts: 223 Location: Miami, FL
Posted: Wed Jan 10, 2007 1:17 pm Post subject:
My bad I forgot to update the fixed file just comment the duplicate variable to have it working like this:
Code:
function content_save_edit($pid, $title, $subtitle, $page_header, $text, $page_footer, $signature, $clanguage, $active, $cid) {
global $prefix, $db, $admin_file;
$pid = intval($pid);
$text = filter($text, "", 1);
$title = filter($title, "nohtml", 1);
$subtitle = filter($subtitle, "nohtml", 1);
$page_header = filter($page_header, "", 1);
//$text = filter($text, "", 1);
$page_footer = filter($page_footer, "", 1);
$signature = filter($signature, "", 1);
$db->sql_query("update " . $prefix . "_pages set cid='$cid', title='$title', subtitle='$subtitle', active='$active', page_header='$page_header', text='$text', page_footer='$page_footer', signature='$signature', clanguage='$clanguage' where pid='$pid'");
Header("Location: ".$admin_file.".php?op=content");
}
Back to top
xairho dadaSupport Joined: Aug 22, 2006 Posts: 47 Location: Köln, Cologne - Germany
Posted: Mon Jan 15, 2007 12:32 am Post subject:
I couldnt repeat this bug.
Though the double fitletring of $text is a mistake for sure.
Thx for the hint.
(xr) _________________
Back to top
emilacosta dadaAdmin Joined: Sep 19, 2005 Posts: 223 Location: Miami, FL
Posted: Mon Jan 15, 2007 3:39 pm Post subject:
This is what I did:
1. I added a page and it was saved fine.
2. then I edit it (add some text in page text) and save it again
3. the text on the "Page Text" was not getting the changes
note: the text that I add in the footer and in the header as well as in the signature were getting the changes
Back to top
dadaBIT General Manager Joined: Jun 23, 2005 Posts: 582 Location: United States
Posted: Tue Jan 16, 2007 4:17 am Post subject:
Greetings and Thanks for the heads' up! What I will do, because next release deadline is fast approaching, is list this as simple a double entry removal type bug, then revise when further investigation produces resolution. xairho, would you make a moment to look into this? It may be above my pay grade
-dadaBIT _________________ Visit the DaDaNuke Wish List
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Copyright © 2006 by Francisco Burzi. This is free software, and you may redistribute it under the
.
PHP-Nuke comes with absolutely no warranty, for details, see the
.
Theme Designed by
Western Studios