[Koha-patches] [PATCH] [SIGNED-OFF] bug 5045 - Help works even when the referrer is being stripped
Owen Leonard
oleonard at myacpl.org
Fri Dec 31 17:19:17 CET 2010
From: Robin Sheat <robin at catalyst.net.nz>
This fix puts the URL of the source page as a parameter to help.pl,
which will override the referrer value, if it's provided. This deals
with people sitting behind proxies that strip the referrer information
out.
Signed-off-by: Owen Leonard <oleonard at myacpl.org>
---
.../intranet-tmpl/prog/en/includes/header.inc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
index 4a81e97..a7c1ab8 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
@@ -68,6 +68,6 @@
<!-- TMPL_ELSE -->
You are not logged in |
<!-- /TMPL_IF -->
- <a href="/cgi-bin/koha/help.pl" id="helper" onclick="window.open('/cgi-bin/koha/help.pl','Koha_Help','width=600,height=600,toolbar=false,scrollbars=yes'); return false;">[ ? ]</a>
+ <a href="/cgi-bin/koha/help.pl" id="helper" onclick="window.open('/cgi-bin/koha/help.pl?url='+escape(document.URL),'Koha_Help','width=600,height=600,toolbar=false,scrollbars=yes'); return false;">[ ? ]</a>
</div>
</div>
--
1.7.3
More information about the Koha-patches
mailing list