Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Originally Posted by
lankeeyankee
After more testing I figured out the apostrophe issue. For anyone else with this issue, in tpl_returns_default.php change line 68 from
PHP Code:
$reason = ($_SESSION['comments']);
to
PHP Code:
$reason = addslashes($_SESSION['comments']);
I'm still working on the COWOA issue. If I crack it I will report back, package up these changes and submit for an update.
I was thinking of adding this mod to my site, but was slow at getting to it.. It turned in to more of a rewrite then I first would of thought!
Out of the box, its not setup to work with COWOA and removing the customers_id checks opens to many doors. There is some other issues with the code, but setting comments into a session, I'm not seeing a reason!!
I think it would be better to sanitize the comment and then add the slashes.. I moved the code into the header which let me kill the session..
Code:
$reason = zen_db_prepare_input(zen_sanitize_string($_POST['reason']));
$reason = addslashes($reason);
I'm redesigning the template page and still working on the back end... just came across another site layout for order status I liked... so taking the design back to the order status page and redesigning it too... looking forward to your updates!
Dave
Always forward thinking... Lost my mind!
Bookmarks