FSN#34642 no302=1 ondersteunen voor bookmarks zodat meta-refresh wordt gebruikt

svn path=/Website/trunk/; revision=27236
This commit is contained in:
Jos Groot Lipman
2015-12-02 16:34:43 +00:00
parent 9a81335e82
commit 1becb4026a
2 changed files with 20 additions and 4 deletions

View File

@@ -134,6 +134,22 @@
}
else
var theURL = protectQS.create(url);
Response.Redirect(theURL);
var no302 = getQParamInt("no302", 0) == 1;
if (no302)
{
%> <html>
<head>
<title>FACILITOR</title>
<META http-equiv="refresh" content="0;URL=<%=safe.htmlattr(theURL)%>">
</head>
<body bgcolor="#ffffff">
<a href="<%=safe.htmlattr(theURL)%>">Auto redirect</a>
</body>
</html>
<%
}
else
Response.Redirect(theURL);
%>

View File

@@ -47,7 +47,7 @@
var proto = (Request.ServerVariables("SERVER_PORT") == "443")?"https":"http";
var sitenoroot = proto + "://" + Request.ServerVariables("SERVER_NAME");
var site = sitenoroot + rooturl;
var url = site + "/?u=" + bookmarkId;
var bookmark = "/?u=" + bookmarkId;
%>
<html>
<head>
@@ -73,8 +73,8 @@
</head>
<body class="modal" id="mod_authQR">
<div id="myQR"><%=L("lcl_qrc_auth_header").format(user.prs_perslid_email(), safe.html(site + "/?u=" + bookmarkId), S("qr_auth_expire"))%></div>
<center><img class="QRC" src='../shared/qrcode.asp?size=4&text=<%=Server.URLEncode("/?u=" + bookmarkId)%>'><br>
<div id="myQR"><%=L("lcl_qrc_auth_header").format(user.prs_perslid_email(), safe.html(site + bookmark), S("qr_auth_expire"))%></div>
<center><img class="QRC" src='../shared/qrcode.asp?size=4&text=<%=Server.URLEncode(bookmark + "&no302=1")%>'><br>
</center>
<div id="footer"><%=L("lcl_qrc_auth_footer")%></div>
</body>