I came upon an issue which altered form actions when the given action is a complete url like : "https://fr.local.capgemini.com/user/reset/4612/1365411669/9yF7p3nHCROiiz..."
ended up as the following invalid url :
"https://fr.local.capgemini.com/ttps%23//fr.local.capgemini.com/user/rese..."

The problem comes from the securepages_form_alter function. First, absolute urls are badly processed. Second, I am not sure it should try to change a url with is already a https.

Below is a patch to fix the processing of absolute urls.

Comments

tguilpain’s picture

Status: Needs review » Active
StatusFileSize
new1018 bytes

I forgot to explain the context of the error I got. It happened in the form you go to by following the link given by email when you reset your password.

And here is the patch, created with the help of sdelbosc

tguilpain’s picture

Status: Active » Needs review
tguilpain’s picture

Status: Active » Needs review
StatusFileSize
new1018 bytes

I found out that the previous version of the patch raised a notice, below is the new version.

astonvictor’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks