Title: Replace filter_input in plugin construct
Last modified: February 13, 2018

---

# Replace filter_input in plugin construct

 *  Resolved [QuietNoise](https://wordpress.org/support/users/quietnoise/)
 * (@quietnoise)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/replace-filter_input-in-plugin-construct/)
 * According to numerous reports filter_input(INPUT_SERVER…) on PHP with CGI/FastCGI
   might result in NULL being returned.
    This happened to me recently and as such
   plugin’s constructor was assigning
 * > $this->domain = $this->originalDomain;
 * which results in home page always redirecting to original domain.
 * Could you please fix it and use normal $_SERVER variables to determine domain
   instead of filter_input function?
 * Read comment from “anthony dot parsons at manx dot net” here for some details:
   [http://php.net/manual/en/function.filter-input.php](http://php.net/manual/en/function.filter-input.php)
   or google for ‘filter_input INPUT_SERVER returns null’ for bug confirmation.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * (@gustavostraube)
 * [8 years ago](https://wordpress.org/support/topic/replace-filter_input-in-plugin-construct/#post-10320709)
 * Thanks for the heads up. I’ll test that and try to update the plugin ASAP.
 *  Plugin Contributor [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * (@gustavostraube)
 * [8 years ago](https://wordpress.org/support/topic/replace-filter_input-in-plugin-construct/#post-10322651)
 * You can check for updates on this here: [https://github.com/straube/multiple-domain/issues/14](https://github.com/straube/multiple-domain/issues/14)
 *  Plugin Contributor [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * (@gustavostraube)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/replace-filter_input-in-plugin-construct/#post-10682931)
 * Hello,
 * Sorry for the delayed response, but this is now fixed. Please upgrade to 0.8.0
   if you’re using an older version of Multiple Domain.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Replace filter_input in plugin construct’ is closed to new replies.

 * ![](https://ps.w.org/multiple-domain/assets/icon-256x256.png?rev=2502840)
 * [Multiple Domain](https://wordpress.org/plugins/multiple-domain/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multiple-domain/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-domain/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-domain/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-domain/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-domain/reviews/)

## Tags

 * [domain](https://wordpress.org/support/topic-tag/domain/)
 * [HTTP_HOST](https://wordpress.org/support/topic-tag/http_host/)

 * 3 replies
 * 2 participants
 * Last reply from: [Gustavo Straube](https://wordpress.org/support/users/gustavostraube/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/replace-filter_input-in-plugin-construct/#post-10682931)
 * Status: resolved