Now clicking cancel button returns user to previous page. Fixes issue 569.
If you don't want that behaviour you can define cancel_redirect and user will be redirected to given url on "Cancel" button click instead of redirecting to previous page.
Patch by: Daniel Hans & Pawel Solyga
<html>
<head><title>We ran out of memory</title></head>
<body>
We ran out of memory while serving your request, please try again.
</body>
</html>