osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Prevent illegal or problematic file name characters from uploading

This is a discussion on Prevent illegal or problematic file name characters from uploading within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This modification to the osCommerce upload class prevents oblivious users from uploading files with names containing characters that are prohibited ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-14-2007, 03:51 PM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,714
Thanks: 139
Thanked 606 Times in 519 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Prevent illegal or problematic file name characters from uploading

This modification to the osCommerce upload class prevents oblivious users from uploading files with names containing characters that are prohibited by certain operating systems but not others (i.e. /:"*?|) or that will cause problems with files not displaying correctly in a web browser or with PHP (i.e. %$#). The fix is very simple, either replace your current version of upload.php with the included file or follow the instructions in the text file to manually fix it yourself.

Note: The error message given by this contribution is English only. Someone else will have to modify this to warn the user in any other language.


More...
__________________
Michael Sasek
osCMax Developer

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Illegal database name ! Viau osCMax v2 Installation issues 3 08-04-2007 06:37 AM
Uploading File Using Easy Populate jasper0 osCMax v2 Customization/Mods 1 03-11-2007 09:56 AM
Mysql import old version to new, now illegal template direct gamefreak7 osCMax v2 Installation issues 12 03-23-2006 02:56 PM
uploading file as an attribute, and more questions.. eternity575 osCMax v2 Installation issues 1 10-26-2005 11:04 AM
How to prevent out of stock items becoming inactive? ScaleCreep osCommerce 2.2 Modification Help 1 02-15-2005 08:37 PM


All times are GMT -8. The time now is 04:54 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design