Browse Source

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

Nate Jones 11 năm trước cách đây
mục cha
commit
1b60ac4245
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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";