[Koha-patches] [PATCH] bug 5045 - Help works even when the referrer is being stripped
Chris Cormack
chrisc at catalyst.net.nz
Wed Jul 21 04:26:53 CEST 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: Chris Cormack <chrisc at catalyst.net.nz>
---
.../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 95ce8dd..95c8109 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
@@ -66,6 +66,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.0.4
More information about the Koha-patches
mailing list