浏览代码

Fix for Issue 481 - Links to protected pages (such as emailed conference recording links) will now properly redirect after login.

Nate Jones 11 年之前
父节点
当前提交
1b60ac4245
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      themes/enhanced/template.php
  2. 1 1
      themes/nature/template.php

+ 1 - 1
themes/enhanced/template.php

@@ -928,7 +928,7 @@ legend {
 										//login form
 											echo "<div align='right'>\n";
 											echo "<form name='login' METHOD=\"POST\" action=\"".$_SESSION['login']['destination']['url']."\">\n";
-											echo "<input type='hidden' name='path' value='$path'>\n";
+											echo "<input type='hidden' name='path' value='".$_GET['path']."'>\n";
 											echo "<table width='200' border='0'>\n";
 											echo "<tr>\n";
 											//echo "<td align='left'>\n";

+ 1 - 1
themes/nature/template.php

@@ -796,7 +796,7 @@ table tr:nth-last-child(-5) td:first-of-type {
 									//login form
 										echo "<div align='right'>\n";
 										echo "<form name='login' METHOD=\"POST\" action=\"".$_SESSION['login']['destination']['url']."\">\n";
-										echo "<input type='hidden' name='path' value='$path'>\n";
+										echo "<input type='hidden' name='path' value='".$_GET['path']."'>\n";
 										echo "<table width='200' border='0'>\n";
 										echo "<tr>\n";
 										//echo "<td align='left'>\n";