Plugin Directory

Changeset 2688963


Ignore:
Timestamp:
03/04/2022 03:29:50 PM (4 years ago)
Author:
adsfox
Message:

update facebook redirect is now possible

Location:
utm-builder-ads-fox
Files:
12 added
2 edited

Legend:

Unmodified
Added
Removed
  • utm-builder-ads-fox/trunk/readme.txt

    r2679122 r2688963  
    44Tags: UTM Builder, UTM Redirect, URL short
    55Requires at least: 5.6.4
    6 Tested up to: 5.9
     6Tested up to: 5.9.1
    77Requires PHP: 7.2
    88Stable tag: 1.0
     
    6161== Changelog ==
    6262
    63 
     631.add facebook redirect is now possible
  • utm-builder-ads-fox/trunk/utmbuilder.php

    r2658881 r2688963  
    66  * Description: UTM Parameter for created short links
    77  * Tags: UTM Builder
    8   * Version: 1.0
     8  * Version: 1.1
    99  * License: GPLv2 or later
    1010  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666if(!is_admin()){
    6767    $mt_base_url = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on' ? 'https' : 'http' ) . '://' .  $_SERVER['HTTP_HOST'];
    68     $mt_url = $mt_base_url . $_SERVER["REQUEST_URI"];
     68    $mt_url = $mt_base_url . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
    6969
    7070    global $wpdb;
Note: See TracChangeset for help on using the changeset viewer.