WP-e-Commerce icon indicating copy to clipboard operation
WP-e-Commerce copied to clipboard

Make sure customer cookie value is url decoded prior to use

Open JeffPyeBrook opened this issue 10 years ago • 2 comments

addresses issue #1786

Make sure customer cookie value is decoded prior to breaking it into components, in php and js/wp-e-commerce

Much console output is being generated in the WPeC javascript, this output is useful when examining cases, but the rest of the time it is a distraction and makes it more difficult to notice problems, so...

Wrapped output to console in test to see if we are in debug mode Added debug mode indicator to localized javascript data when debug mode is enabled at the server Added utility routine to check for debug mode to core

Utility routine that checks for debug mode enabled implemented.

Debug mode determined to be enabled when WordPress debug mode is enabled via constant definition Debug mode determined to be enabled when WPeC debug mode is enabled via constant definition Debug mode can be enabled/disabled persistently at runtime by a logged in administrative user putting a parameter onto a store url. This will enable WPeC support to enable debug mode via the internet without having to access source code.

Also: added check to wpsc_element_is_visible so it doesn't error when called with an undefined element. That call happens when non-standard checkout form field configurations are used.

JeffPyeBrook avatar Mar 11 '15 12:03 JeffPyeBrook

@JustinSainton jshint driven cleanup of changed areas, found and fixed another type/defect

JeffPyeBrook avatar Mar 17 '15 17:03 JeffPyeBrook

@JeffPyeBrook Can we rebase and get this in 4.0?

JustinSainton avatar Dec 30 '15 22:12 JustinSainton