Print Page | Close Window

Header.aspx - dashes removed in SKU

Printed From: SalesCart
Category: Legacy Products
Forum Name: SalesCart NET
Forum Description: For SalesCart NET developers and designers to converse with other SalesCart NET owners
URL: http://forum.salescart.com/forum/forum_posts.asp?TID=745
Printed Date: November/23/24 at 3:52pm
Software Version: Web Wiz Forums 11.04 - http://www.webwizforums.com


Topic: Header.aspx - dashes removed in SKU
Posted By: jimgub
Subject: Header.aspx - dashes removed in SKU
Date Posted: January/09/09 at 8:30am
We noticed that when our SKU numbers had dashes in them, and we added an item with dashes in it's SKU to the Cart, or tried to modify that same item with the admin pages, the dashes would be removed.
It appeared the "culprit" was Header.aspx in stripping out the dashes. We changed the code to allow the dashes to remain.. Why did/does Header.aspx remove the dashes? Is their some other workaround...?
thx
Jim



Replies:
Posted By: drafting
Date Posted: June/16/09 at 1:09pm
Did you try using the ASCII code for the dash?

-


Posted By: admin
Date Posted: August/20/09 at 12:36pm
The header.aspx "sanitizes" all input from the user to prevent SQL Injection. You can change this very simply in the header.aspx and you saw. You could also change the dashes to some other character if you wanted to.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.04 - http://www.webwizforums.com
Copyright ©2001-2015 Web Wiz Ltd. - http://www.webwiz.co.uk