mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Security patch for MSA 2416728
This commit is contained in:
27
src/Orchard.Web/Error.aspx
Normal file
27
src/Orchard.Web/Error.aspx
Normal file
@@ -0,0 +1,27 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" %>
|
||||
<%@ Import Namespace="System.Security.Cryptography" %>
|
||||
<%@ Import Namespace="System.Threading" %>
|
||||
|
||||
<script runat="server">
|
||||
void Page_Load() {
|
||||
byte[] delay = new byte[1];
|
||||
RandomNumberGenerator prng = new RNGCryptoServiceProvider();
|
||||
|
||||
prng.GetBytes(delay);
|
||||
Thread.Sleep((int)delay[0]);
|
||||
|
||||
IDisposable disposable = prng as IDisposable;
|
||||
if (disposable != null) { disposable.Dispose(); }
|
||||
}
|
||||
</script>
|
||||
|
||||
<html>
|
||||
<head id="Head1" runat="server">
|
||||
<title>Error</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
An error occurred while processing your request.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user