-
-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couponcode adminhtml updated pull #447
Conversation
…view) solve longstanding order shortcoming (so actual coupon code on order view in adminhtml) now our logistics see the description @ totals overview: but have to ask the customer: which code was it? esp. handy when using generated codes simple fix: please improve if you think this can be done better. Breaks nothing, quickwin for admin users
Whilst I haven't investigated, how the values pass through the system, both |
If it doesn’t break anything why not add the change? Please edit the change
Also
In some advanced cases more than 1 code can be applied. So maybe check for
multiple values too for these exotic cases
…On Wed, 14 Mar 2018 at 22:04, pocallaghan ***@***.***> wrote:
Whilst I haven't investigated, how the values pass through the system,
both $_order->getCouponCode() and $_order->getDiscountDescription()
should likely be escaped before passing them to translate. Off the top of
my head, I don't think a frontend user can insert an arbitrary value, so
it's probable that you'd require admin access to exploit, but it's always
good practice to escape such data. It's possible that with access to a
limited administrative account, privileges could be escalated through use
of persistent XSS in these fields.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#447 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAn0a8C9gwkLRCNkNGZ6o9bmkao0Hokbks5teYXQgaJpZM4R-WCv>
.
|
Good observation, @pocallaghan. PR updated. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the work 👍
I did a code review: LGTM
* solve longstanding order shortcoming (so actual coupon code on order view) solve longstanding order shortcoming (so actual coupon code on order view in adminhtml) now our logistics see the description @ totals overview: but have to ask the customer: which code was it? esp. handy when using generated codes simple fix: please improve if you think this can be done better. Breaks nothing, quickwin for admin users * Sloppy missed clsoing div * Updated string * Add coupon code translations * Update Mage_Adminhtml.csv * Added coupon code * Escape coupon code and description in template. Co-authored-by: Colin Mollenhour <colin@mollenhour.com>
* solve longstanding order shortcoming (so actual coupon code on order view) solve longstanding order shortcoming (so actual coupon code on order view in adminhtml) now our logistics see the description @ totals overview: but have to ask the customer: which code was it? esp. handy when using generated codes simple fix: please improve if you think this can be done better. Breaks nothing, quickwin for admin users * Sloppy missed clsoing div * Updated string * Add coupon code translations * Update Mage_Adminhtml.csv * Added coupon code * Escape coupon code and description in template. Co-authored-by: Colin Mollenhour <colin@mollenhour.com>
Couponcode adminhtml updated pull
no squash merge here otherwise would have bundled in 1