#3008 - Giftr: Missing username parameter in $post_url in function action_done()

This is a spacer post for a website comment topic. The content this topic relates to: #3008 - Giftr: Missing username parameter in $post_url in function action_done()
That would be a GET parameter, but the receiving code uses a POST parameter, which is the username input on the form. I just tested and it was okay.

I did see a minor bug. If you put in the wrong username it says you didn't specify a user, while it should say the user does not exist. I've fixed that.
I must have an old version of giftr then because my version takes username as a GET parameter... and I know for sure the username I typed in was correct... and after adding the username parameter in to the build URL function, it worked again.
What exact line are you saying reads it as a GET parameter, requires it as a GET parameter, and triggers a failure?

Because there's a get_param_string call in the same function as the form, but that is just a default for the form field. The function that reads in the form using post_param_string.
$post_url = build_url(array('page' => 'pointstore', 'type' => 'action_done2', 'id' => 'giftr', 'gift' => get_param_string('gift', 0), 'username' => get_param_string('username', '')), '_SEARCH'); line 120 on my end. I added the username part.

I see what you mean by post_param_string. I'm wondering why it wasn't working now.
Right, that's 124 for me. I suspect somewhere this has diverged.
0 guests and 0 members have recently viewed this.