소스 검색

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
 										//login form
 											echo "<div align='right'>\n";
 											echo "<div align='right'>\n";
 											echo "<form name='login' METHOD=\"POST\" action=\"".$_SESSION['login']['destination']['url']."\">\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 "<table width='200' border='0'>\n";
 											echo "<tr>\n";
 											echo "<tr>\n";
 											//echo "<td align='left'>\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
 									//login form
 										echo "<div align='right'>\n";
 										echo "<div align='right'>\n";
 										echo "<form name='login' METHOD=\"POST\" action=\"".$_SESSION['login']['destination']['url']."\">\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 "<table width='200' border='0'>\n";
 										echo "<tr>\n";
 										echo "<tr>\n";
 										//echo "<td align='left'>\n";
 										//echo "<td align='left'>\n";