if we doesn't use ajax then we see two lookups when press the lookup button. only from the second lookup.

    $result = $whois->Lookup($address);

    error_log($address);

    switch($option) {

Comments

helmo’s picture

You probably only see this after you lookup a second domain. It is due to the way this module redirects a form POST to a GET request like /drupal/whois/example.com

I'm not sure why this method was originally chosen, but it might be something to look into.

helmo’s picture

Assigned: Unassigned » helmo
Status: Active » Fixed

Committed a change to separate the ajax handling from the regular page, which should prevent this duplication from happening.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.