Trust root depends on current language when using the Locale module

Bug #353459 reported by Pierre Buyle
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drupal OpenID module
New
Low
Unassigned
Drupal/Launchpad login module
New
Undecided
Unassigned

Bug Description

When using the Locale module to select interface (and content) language through the URL (with the "Path prefix with language fallback." language negotiation), the trust root (as reported on the admin page and Launchpad) includes the language prefix.

On our site, when I log from http://ubuntu-be.org/en, the trust root is http://ubuntu-be.org/en. And when I log from http://ubuntu-be.org/fr, the trust root is http://ubuntu-be.org/fr.

Tags: taskbucket
description: updated
affects: ubuntu-drupal-releases → drupal-openid
Revision history for this message
Evan Boldt (echowarp) wrote :

I was able to fix this in an ugly way by using a PHP variable, rather than a Drupal function to get the absolute url

You can just do a search for url() and make an substitute appropriately.

'http://' . $_SERVER['HTTP_HOST']

I don't want to submit a patch because it's not working for me. That doesn't mean that replacing url() with the php variable will not work though. My OpenID has never worked. I can't figure out why,and it doesn't display any errors, but that was even before I did this to fix the dependency on language.

So, no promises it will work.

Revision history for this message
Evan Boldt (echowarp) wrote :

This is the patch for Drupal Lanchpad.

Someone should look these patches over for security before committing them.

Revision history for this message
Evan Boldt (echowarp) wrote :

This is the patch for Drupal-OpenID

Changed in drupal-openid:
importance: Undecided → Low
tags: added: taskbucket
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.