TheWebSolver / tws-license-manager-client

The Web Solver License Manager Client extends the functionality of License Manager for WooCommerce. This plugin/framework is to be included inside the selling plugin for license activation/deactivation.
https://github.com/TheWebSolver/tws-license-manager-client
GNU General Public License v3.0
6 stars 2 forks source link

Verify query parameter existence. #9

Open hsehszroc opened 2 years ago

hsehszroc commented 2 years ago

Query parameter may already have ? present in the URL. Verify and add it accordingly.

Method name: Http_Client::build_url_query() Filesource: Includes/Component/Http_Client.php

if (!empty($parameters)) {
            if (false !== strpos($url, '?')) {
                $url .= '&' . \http_build_query($parameters);
            } else {
                $url .= '?' . \http_build_query($parameters);
            }
        }