Author: andreas
Date: Thu Sep 27 01:02:33 2007
New Revision: 579935
URL: http://svn.apache.org/viewvc?rev=579935&view=rev
Log:
Add server to shire and target URLs in ShibbolethModule
Modified:
lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethModule.java
Modified: lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethModule.java
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethModule.java?rev=579935&r1=579934&r2=579935&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethModule.java (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/java/org/apache/lenya/ac/shibboleth/ShibbolethModule.java Thu Sep 27 01:02:33 2007
@@ -77,6 +77,12 @@
OutgoingLinkRewriter rewriter = new OutgoingLinkRewriter(this.manager, getLogger());
String outgoingUrl = rewriter.rewrite(webappUrl);
+ if (outgoingUrl.startsWith("/")) {
+ String serverUrl = req.getScheme() + "://" + req.getServerName() + ":"
+ + req.getServerPort();
+ outgoingUrl = serverUrl + outgoingUrl;
+ }
+
if (name.equals(ATTR_SHIRE)) {
return outgoingUrl + "?lenya.usecase=login&lenya.step=login";
} else if (name.equals(ATTR_TARGET)) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.