Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294715

NodeRevisionDeleteForm::submitForm uses the wrong check for setting a redirect

$
0
0

Problem/Motivation

NodeRevisionDeleteForm::submitForm runs a check to decide whether to redirect the user to the main page or the revision history page. This check, however, is a hardwired SQL query which not only fails with alternate storage engines but also if the route access check is changed.

Proposed resolution

Use the route access check instead. We redirect right there, it just makes sense not to redirect to a page which ends up access denied.


Viewing all articles
Browse latest Browse all 294715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>