Plugin Directory

Changeset 1403416


Ignore:
Timestamp:
04/24/2016 08:39:25 PM (10 years ago)
Author:
anadnet
Message:

5.1.8 - fixed qppr_frontend_script.min.js false positive

Location:
quick-pagepost-redirect-plugin/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • quick-pagepost-redirect-plugin/trunk/js/qppr_frontend_script.min.js

    r1224061 r1403416  
    1 !function(t){t(document).ready(function(){function e(t,e){return"undefined"!=typeof e[t]?"1":"undefined"!=typeof e[t.replace(a,"")]?"2":"undefined"!=typeof e[t.replace(n,"")]?"3":!1}var r=qpprFrontData.linkData,a=qpprFrontData.siteURL,n=qpprFrontData.siteURLq;t("a[href]").each(function(){var i=t(this),f="undefined"!=typeof t(this).attr("href")?t(this).attr("href"):"",l=e(f,r);if(l!==!1){var o="undefined"!=typeof t(this).attr("rel")?t(this).attr("rel"):"",p=("undefined"!=typeof t(this).attr("target")?t(this).attr("target"):"",!1),h=!1,c="",d=f;if("1"==l?(p=r[f][0],h=r[f][1],c=r[f][2]):"2"==l?(p=r[f.replace(a,"")][0],h=r[f.replace(a,"")][1],c=r[f.replace(a,"")][2],d=f.replace(a,"")):"3"==l&&(p=r[f.replace(n,"")][0],h=r[f.replace(n,"")][1],c=r[f.replace(n,"")][2],d=f.replace(n,"")),p&&""===this.target&&(this.target="_blank"),h&&(""!==o&&"nofollow"!==o?t(this).attr("rel",o+" nofollow"):t(this).attr("rel","nofollow")),""!=c){t(this).attr("href",c);var s=i.html();s=s.replace(d,c),i.html(s)}}})})}(jQuery);
     1;(function($){$(document).ready(function(){var newWindowArr=qpprFrontData.linkData;var root=qpprFrontData.siteURL;var qroot=qpprFrontData.siteURLq;$('a[href]').each(function(){var thisMatch=$(this);var href=typeof $(this).attr('href')!=='undefined'?$(this).attr('href'):'';var linkFound=qppr_in_array(href,newWindowArr);if(linkFound!==false){var rel='undefined'!==typeof $(this).attr('rel')?$(this).attr('rel'):'';var tar='undefined'!==typeof $(this).attr('target')?$(this).attr('target'):'';var doNW=false;var doNF=false;var rURL='';var hChk=href;if(linkFound=='1'){doNW=newWindowArr[href][0];doNF=newWindowArr[href][1];rURL=newWindowArr[href][2];}else if(linkFound=='2'){doNW=newWindowArr[href.replace(root,'')][0];doNF=newWindowArr[href.replace(root,'')][1];rURL=newWindowArr[href.replace(root,'')][2];hChk=href.replace(root,'');}else if(linkFound=='3'){doNW=newWindowArr[href.replace(qroot,'')][0];doNF=newWindowArr[href.replace(qroot,'')][1];rURL=newWindowArr[href.replace(qroot,'')][2];hChk=href.replace(qroot,'');}
     2if(doNW){if(this.target==='')
     3this.target="_blank";}
     4if(doNF){if(rel!==''&&rel!=='nofollow')
     5$(this).attr('rel',rel+' nofollow');else
     6$(this).attr('rel','nofollow');}
     7if(rURL!=''){$(this).attr('href',rURL);var newTxt=thisMatch.html();newTxt=newTxt.replace(hChk,rURL)
     8thisMatch.html(newTxt);}}});function qppr_in_array(needle,haystack){if('undefined'!==typeof haystack[needle]){return'1';}else if('undefined'!==typeof haystack[needle.replace(root,'')]){return'2';}else if('undefined'!==typeof haystack[needle.replace(qroot,'')]){return'3';}
     9return false;}});})(jQuery);
  • quick-pagepost-redirect-plugin/trunk/page_post_redirect_plugin.php

    r1332090 r1403416  
    77Author URI: http://www.anadnet.com/
    88Donate link:
    9 Version: 5.1.7
     9Version: 5.1.8
    1010Text Domain: quick-pagepost-redirect-plugin
    1111Domain Path: /lang
     
    7272   
    7373    function __construct() {
    74         $this->ppr_curr_version         = '5.1.7';
     74        $this->ppr_curr_version         = '5.1.8';
    7575        $this->ppr_nofollow             = array();
    7676        $this->ppr_newindow             = array();
  • quick-pagepost-redirect-plugin/trunk/readme.txt

    r1332096 r1403416  
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
    88Tested up to: 4.3.1
    9 Stable tag: 5.1.7
     9Stable tag: 5.1.8
    1010
    1111Easily redirect pages/posts or custom post types to another page/post or external URL by specifying the redirect URL and type (301, 302, 307, meta).
    1212
    1313== Description ==
    14 **Current Version 5.1.7**
     14**Current Version 5.1.8**
    1515
    1616This plugin has two redirect functionalities - **"Quick Redirects"** and **"Individual Redirects"**:
     
    183183* Add New Window and No Follow to links where the URL has been rewritten. Currently if you rewrite the URL neither will work as they are referenced with the original URL, not the rewrite.
    184184
     185= 5.1.8 =
     186* **Bug Fix:** Used a different minified version for the qppr_frontend_script.min.js file after it received a false positive of being a Trojan. The 5.1.7 version is totally safe to use too. The false positive was caused due to the way the specific file was minified. This is a confirmation that nothing was infected or was acting as a trojan of any sort in any previous version.
    185187= 5.1.7 =
    186188* **Bug Fix:** Fixed Post redirects bug caused by 5.1.6
Note: See TracChangeset for help on using the changeset viewer.