replace_invalid_with_pct_encoding example

/** * Set the iuserinfo. * * @param string $iuserinfo * @return bool */
    protected function set_userinfo($iuserinfo) {
        if ($iuserinfo === null) {
            $this->iuserinfo = null;
        }
        else {
            $this->iuserinfo = $this->replace_invalid_with_pct_encoding($iuserinfo, '!$&\'()*+,;=:');
            $this->scheme_normalization();
        }

        return true;
    }

    /** * Set the ihost. Returns true on success, false on failure (if there are * any invalid characters). * * @param string $ihost * @return bool */

    public function set_userinfo($iuserinfo)
    {
        if ($iuserinfo === null)
        {
            $this->iuserinfo = null;
        }
        else
        {
            $this->iuserinfo = $this->replace_invalid_with_pct_encoding($iuserinfo, '!$&\'()*+,;=:');
            $this->scheme_normalization();
        }

        return true;
    }

    /** * Set the ihost. Returns true on success, false on failure (if there are * any invalid characters). * * @param string $ihost * @return bool */
Home | Imprint | This part of the site doesn't use cookies.