Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.2
Author Message
blith
Client



Joined: Jul 18, 2003
Posts: 977

PostPosted: Mon May 10, 2004 10:26 am Reply with quote

I am adding downloads and filling in all the information, I click the add button and I am given the Thanks for your submission screen but it never shows up in the waiting download section of the admin panel. Can someone help me? Thanks.

Edit I checked the database and it is not in there either.
 
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Mon May 10, 2004 1:54 pm Reply with quote

Are the tables there? What version Nuke what files are in use (Patched files newest?) Are the database tables there?
 
View user's profile Send private message
blith







PostPosted: Tue May 11, 2004 6:36 am Reply with quote

The tables are there. I am using 7.2 patched (from here). thank you...
 
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Tue May 11, 2004 6:53 am Reply with quote

Do a structure-only backup of the download db tables and post it.
 
View user's profile Send private message Visit poster's website
blith







PostPosted: Tue May 11, 2004 7:30 am Reply with quote

chatserv wrote:
Do a structure-only backup of the download db tables and post it.

Here is the newdownload table:
Code:


#
# Table structure for table `nuke_downloads_newdownload`
#

CREATE TABLE `nuke_downloads_newdownload` (
  `lid` int(11) NOT NULL auto_increment,
  `cid` int(11) NOT NULL default '0',
  `sid` int(11) NOT NULL default '0',
  `title` varchar(100) NOT NULL default '',
  `url` varchar(100) NOT NULL default '',
  `description` text NOT NULL,
  `name` varchar(100) NOT NULL default '',
  `email` varchar(100) NOT NULL default '',
  `submitter` varchar(60) NOT NULL default '',
  `filesize` int(11) NOT NULL default '0',
  `version` varchar(10) NOT NULL default '',
  `homepage` varchar(200) NOT NULL default '',
  PRIMARY KEY  (`lid`),
  KEY `lid` (`lid`),
  KEY `cid` (`cid`),
  KEY `sid` (`sid`),
  KEY `title` (`title`)
) TYPE=MyISAM AUTO_INCREMENT=7 ;
 
chatserv







PostPosted: Tue May 11, 2004 7:40 am Reply with quote

Looks ok to me, i'll check the patch's file, load the default one to see if it works.
 
blith







PostPosted: Tue May 11, 2004 7:53 am Reply with quote

Okay, funny thing I hust did a test add and it worked. I did two seperate yesterday and they would not show up in the admin section of Waiting Content. Is it possible that there could be some variable in a download address that would not get throug due to the security measures? Thanks for looking into this chatserv.
 
chatserv







PostPosted: Tue May 11, 2004 8:09 am Reply with quote

I've seen weirder things sometimes a work or symbol in the title could trigger some of the protection.
 
blith







PostPosted: Tue May 11, 2004 9:24 am Reply with quote

Okay, when/if it happens again I will make note of the record and then check into it. I forgot to add that if I added the dl through the admin panel it went in okay. I checked my user_add_download variable and it is on yes(1) so.... not sure wha' happened.
 
blith







PostPosted: Tue May 11, 2004 1:13 pm Reply with quote

Alright I have found out something interesting. I could not add a download from the download section if I copy and paste. Everything must be typed in... I did not check to see if it was individual fields yet but I will get back to everyone on that.
 
sixonetonoffun







PostPosted: Tue May 11, 2004 6:32 pm Reply with quote

What where you trying to cut n paste from word?
 
blith







PostPosted: Wed May 12, 2004 7:19 am Reply with quote

sixonetonoffun wrote:
What where you trying to cut n paste from word?

Outlook...which uses Word...
 
sixonetonoffun







PostPosted: Wed May 12, 2004 1:14 pm Reply with quote

That would do it try pasting it into notepad or something to get rid of the word formatting.
 
blith







PostPosted: Wed May 12, 2004 2:43 pm Reply with quote

funny this problem only cropped up in 7.2. I have over 800 downloads and it just started with 7.2...
 
sixonetonoffun







PostPosted: Wed May 12, 2004 2:53 pm Reply with quote

Ouch I'd be looking at what changes are in the filters and what is in your urls Are the * chars in the urls or descriptions? I noticed I couldn't post slash* comments here after the latest UNION code was added. (At least thats what I think is causing it).
 
blith







PostPosted: Wed May 19, 2004 8:01 am Reply with quote

I found out what character was causing it. In the user add download section a single quote
Code:
 '
cannot be used. Where can I take this out of the filter? And if I do what harm can come of it? Thanks!
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu May 20, 2004 8:49 pm Reply with quote

I'm not too sure it's a filter issue. It could be the quote is quoted, if you will, and is now an uneven number of quote marks and PHP get's a migraine Shocked . When I encounter this in the download titles (usually) I just work around it Laughing . Not that I couldn't fix it, it's just not worth the effort to me. Bigger fish to fry Wink
 
View user's profile Send private message
blith







PostPosted: Fri May 21, 2004 7:35 am Reply with quote

I work around it also when I am adding downloads but the problem is if a user is adding his download it reads "Your download submission has been received." and then it never shows up. The person who entered it believes I am ignoring them or not getting to it. Suggestions?
 
Raven







PostPosted: Fri May 21, 2004 8:07 am Reply with quote

Write code to either addslashes() or strip all ' marks.


Last edited by Raven on Fri May 21, 2004 9:05 am; edited 1 time in total 
blith







PostPosted: Fri May 21, 2004 8:38 am Reply with quote

sheesh gotto go learn to fish.... Wink Very Happy
 
blith







PostPosted: Tue May 25, 2004 1:37 pm Reply with quote

What is the purpose of the stripslashes in the AddDownload section of index.php for the downloads module? I have been reading about this and I am trying to understand. Stripslashes seem to be used to remove the backslash from a data string so that anything entered in as O\'reily would come out as O'reily. But that is not what is needed here. Users do not enter the single quote with a "\" in front of it to be stripped out. So are the "\" being entered somewhere else and then being stripped here as a way to have them entered into the db? Thanks to anyone for their help. The crux of my problem is that when a User enters a download it is not being forwarded to me because they have used singe quotes somewhere, usually as an apostrophe... so I don't get them and then they wonder why I haven't posted their download.
 
chatserv







PostPosted: Tue May 25, 2004 1:47 pm Reply with quote

In the files i have the AddDownload function does not include stripslashes as it is not required, the Add function does because it sends data into the db.
 
blith







PostPosted: Tue May 25, 2004 1:49 pm Reply with quote

Right I am sorry. I am still learning and after looking at that it is further down in the Add function. See I am trying to learn! Can you point me further in the answer to my problem? Thank you.
 
sixonetonoffun







PostPosted: Tue May 25, 2004 1:56 pm Reply with quote

You really don't want to let users post urls with single quotes as part of the url. Why? Because they are commonly used as part of an sql injection.

If your going to allow that you do it at your own risk and don't come crying when your site gets defaced or worse.

If your talking about a text field from the tests I've done there is no issue with the use of quotes as you described. I can make posts with all the quotes I want. Can you please be more specific regarding the use of quotes here?
 
blith







PostPosted: Tue May 25, 2004 2:15 pm Reply with quote

sixonetonoffun wrote:
You really don't want to let users post urls with single quotes as part of the url. Why? Because they are commonly used as part of an sql injection.


I am aware of this and that's why I am trying to understand this.

Quote:
If your going to allow that you do it at your own risk and don't come crying when your site gets defaced or worse.

Whoa, where did that comment come from? I do not come "crying" for anything...

Quote:
If your talking about a text field from the tests I've done there is no issue with the use of quotes as you described. I can make posts with all the quotes I want. Can you please be more specific regarding the use of quotes here?

I have had several users attempt to add doownloads through the Add download link and I thought I had narrowed it down to if a single quote is used it will not pass the information onto me as the admin in waiting content. It will happen to me also if I go through the user section to add a download. I will receive the "Submission received" screen but it does not show up in the admin section as a waiting download.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.2

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©