##// END OF EJS Templates
security: fix self-xss on modifing gist filename.
dan -
r1948:151fcf6c default
parent child Browse files
Show More
@@ -378,7 +378,7 b' class GistView(BaseAppView):'
378 Session().commit()
378 Session().commit()
379 h.flash(_('Successfully updated gist data'), category='success')
379 h.flash(_('Successfully updated gist data'), category='success')
380 except validation_schema.Invalid as errors:
380 except validation_schema.Invalid as errors:
381 errors = errors.asdict()
381 errors = h.escape(errors.asdict())
382 h.flash(_('Error occurred during update of gist {}: {}').format(
382 h.flash(_('Error occurred during update of gist {}: {}').format(
383 gist_id, errors), category='error')
383 gist_id, errors), category='error')
384 except Exception:
384 except Exception:
General Comments 0
You need to be logged in to leave comments. Login now