Redirect error with domain languages.

randall.vg - December 9, 2008 - 14:02
Project:Shared Sign-On
Version:6.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

When one of the shared domains has another language defined, the initial redirection will fail because the url() function is not used in the correct way.

The URL returned is in the following form:
www.domain.comhttp://www.otherdomain.com/singlesignon/initial_check?slav...
%2Fwww.otherdomain.com%2Fadmin%2Fsettings%2Fsinglesignon

I've attached a patch to fix this problem.

AttachmentSize
singlesignon-20081209.patch511 bytes

#1

randall.vg - December 9, 2008 - 14:04
Title:Shared sign-on isn't working in conjunction with domain languages.» Redirect error with domain languages.

#2

ArjanLikesDrupal - December 20, 2008 - 16:12

I can confirm that the patch works as described, thanks.

#3

ArjanLikesDrupal - December 20, 2008 - 16:21
Status:needs review» reviewed & tested by the community

Marked #264360: Conflict with Domain Languages? as duplicate (though older) and I suppose we can change status to tested.

#4

rapsli - September 23, 2009 - 09:39

I had problems with the following lines:

<?php
//if (function_exists('t') ? $op == t('Log in') : $op == 'Log in') {
     
if($op == 'Log in' || $op == 'Einloggen'){
?>

The outcommented line is the original line, the line below is my fix. It seems as if the t function is not active yet. When you have the login button translated this if statement is never going to work out...

 
 

Drupal is a registered trademark of Dries Buytaert.