Welcome Guest!   Please Login or Register
Subscribe Today

You are not subscriber of DaDaNuke | Making PHP-Nuke Better!. You can subscribe from here now!

Sponsored Links




Search




Site Navigation

· Home
· About Us
· Advertise With Us
· Club
· CVS
· Downloads
· Feedback
· Forums
· Gallery
· Groups
· Journal
· Private Messages
· Search
· Stories Archive
· Submit News
· Top 10
· Topics
· Web Links
· Your Account

Survey

I Want This Addon:

SEO
Gaming
Commerce
Database
Security



Results
Polls

Votes 628

Advertisers





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 received
5583710
page views since September 2005




DaDaNuke :: View topic - [BUG] Content Module Admin Edit Double Variable Removal
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log inLog in 

[BUG] Content Module Admin Edit Double Variable Removal

 
Post new topic   Reply to topic    DaDaNuke Forum Index -> PHP-Nuke
View previous topic :: View next topic  
Author Message
emilacosta
dadaAdmin
dadaAdmin


Joined: Sep 19, 2005
Posts: 223
Location: Miami, FL

PostPosted: Wed Jan 10, 2007 1:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
xairho
dadaSupport
dadaSupport


Joined: Aug 22, 2006
Posts: 47
Location: Köln, Cologne - Germany

PostPosted: Mon Jan 15, 2007 12:32 am    Post subject: Reply with quote

I couldnt repeat this bug.
Though the double fitletring of $text is a mistake for sure.
Thx for the hint.

(xr)
_________________
Back to top
View user's profile Send private message Visit poster's website
emilacosta
dadaAdmin
dadaAdmin


Joined: Sep 19, 2005
Posts: 223
Location: Miami, FL

PostPosted: Mon Jan 15, 2007 3:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
dadaBIT
General Manager
General Manager


Joined: Jun 23, 2005
Posts: 582
Location: United States

PostPosted: Tue Jan 16, 2007 4:17 am    Post subject: Reply with quote

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 Rolling Eyes

-dadaBIT
_________________

Visit the DaDaNuke Wish List
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    DaDaNuke Forum Index -> PHP-Nuke All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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
Powered by phpBB © 2001 phpBB Group Version 2.0.6 of PHP-Nuke Port by Tom Nitzschner © 2002 www.toms-home.com
Theme designed by Western Studios



Terms of Use | Privacy Policy © 1996-2007, DaDaNuke

Listed on FeedBurner

PHP-Nuke Copyright © 2006 by Francisco Burzi. This is free software, and you may redistribute it under the GPL.
PHP-Nuke comes with absolutely no warranty, for details, see the license.

Theme Designed by Western Studios