Trust root depends on current language when using the Locale module

Bug #353459 reported by Pierre Buyle on 2009-04-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drupal OpenID module
Drupal/Launchpad login module

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, the trust root is And when I log from, the trust root is

description: updated
affects: ubuntu-drupal-releases → drupal-openid
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.

Evan Boldt (echowarp) wrote :

This is the patch for Drupal Lanchpad.

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

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

Other bug subscribers