close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

server validation: how to disallow quotes on filename?

Thread began 7/29/2019 3:19 am by tony | Last modified 7/31/2019 9:48 pm by Ray Borduin | 342 views | 3 replies |

tony

server validation: how to disallow quotes on filename?

Hello Ray,
I already applied the alphanumeric rule to a file field validation allowing only uppecases, lowercases, numbers and few charaters (_-.), excluding the parenthesis.
But the page crash while uploading a file containing a single quote. I already know this is a reserved characters, but it can happen that a a site visitor doesn't know this.
How can I solve this? I'm using DB1, at the moment.
I have DB2 but I can't migrate all live websites now.
TIA
tony

Sign in to reply to this post

Ray BorduinWebAssist

Please attach a copy of the page you are working on with the issue. I'll see if I can spot how to fix it in the code. Do you see an error? or does the page just go white?

Sign in to reply to this post
Did this help? Tips are appreciated...

SCar87011738

Originally Said By: Ray Borduin
  Please attach a copy of the page you are working on with the issue. I'll see if I can spot how to fix it in the code. Do you see an error? or does the page just go white?  


Thanks Ray,
the page goes just blank.
I attached the page as private attachment.
In the meantime I solved asking the customer to check for quotes or double quotes in the filename.
Thanks, anyway.
Tony

Sign in to reply to this post

Ray BorduinWebAssist

A blank page usually means there is an error, but displaying error messages is turned off.

Put this on the top of the page:

php:
<?php ini_set("display_errors",1); ?>



That might allow the error to display, and if you can tell me what the error is, then I might be able to better understand the issue. I think it is probably an issue with the file upload, not the validation.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...