Plugin Directory

Changeset 1179092


Ignore:
Timestamp:
06/11/2015 04:49:22 PM (10 years ago)
Author:
Henry Krupp
Message:

vulnerability removed

Location:
paypal-currency-converter-basic-for-woocommerce/trunk
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • paypal-currency-converter-basic-for-woocommerce/trunk/Readme.txt

    r1090665 r1179092  
    9090* Tested with WooCommerce 2.3.2
    9191
     92= 1.4 =
     93* Vulnerability, due to google currency lookup removed
     94
    9295== Upgrade Notice ==
    9396
     
    108111* trial version
    109112* Tested with WooCommerce 2.3.2
     113
     114= 1.4 =
     115* Vulnerability, due to google currency lookup removed
  • paypal-currency-converter-basic-for-woocommerce/trunk/assets/js/ppcc_script.js

    r849430 r1179092  
    11jQuery(document).ready(function() {
    22    jQuery( ".settings-error" ).hide();
    3     get_ajax("#gc");
    4     var googlerate=jQuery('#currency_converter_result span.bld').text().replace(/[^\d\.]/g, '');
    5     googlerate = Math.round(googlerate * 1000) / 1000000;
    6     //jQuery("#gc").html(currency()+' ***'+php_data.target_currency+'/'+php_data.source_currency);
    7     //jQuery("#gc").html(googlerate + ' ***' + php_data.target_currency + '/' + php_data.source_currency);
    83
    94    jQuery('#selected_currency').val(currency() + ' ' + php_data.target_currency + '/' + php_data.source_currency);
     
    5045    return currate;
    5146}
    52 
    53 function get_ajax(my_target){
    54         var answer = jQuery.get(php_data.proxy,{ requrl: php_data.requrl},
    55             function(data) {
    56                 jQuery(my_target).html(data);
    57                 jQuery('#selected_currency').val(currency()+' '+php_data.target_currency+'/'+php_data.source_currency);
    58                 if (jQuery('#cr').val()==currency()){
    59                     jQuery('#cr').css('color', 'green');
    60                 }else{
    61                     jQuery('#cr').css('color', 'red');
    62                     jQuery( ".settings-error" ).show();
    63                 }
    64             }
    65         );
    66     }
  • paypal-currency-converter-basic-for-woocommerce/trunk/paypalcc-basic.php

    r1090665 r1179092  
    33 * Plugin URI: http://www.intelligent-it.asia
    44 * Description: Convert any currency to allowed PayPal currencies for PayPal's Payment Gateway within WooCommerce
    5  * Version: 1.3
     5 * Version: 1.4
    66 * Author: Intelligent-IT.asia
    77 * Author URI: http://www.intelligent-it.asia
     
    189189
    190190            $data = array( 
    191                             'proxy' => plugins_url( 'proxy.php', __FILE__ ),
    192191                            'source_currency' => get_woocommerce_currency(),
    193192                            'target_currency' => $options['target_currency'],
    194193                            'amount'=>$exrdata,
    195                             'requrl'=>'https://www.google.com/finance/converter?a=1&from='.get_woocommerce_currency().'&to='.$options['target_currency'],
    196194                            );
    197195                           
     
    248246                        <td class="forminp">'. $currency_selector .'</td>
    249247                    </tr>
    250                     <tr valign="top">
    251                         <th class="titledesc" scope="row"><label >'. __('Google\'s conversion rate','PPAC').':</label >
    252                             <img class="help_tip" data-tip="'.__('For informational purpose, only 4 digits accuracy (not used for calculations).','PPAC').'" src="'.plugins_url().'/woocommerce/assets/images/help.png" height="16" width="16" />
    253                         </th>
    254                        
    255                         <td class="forminp">
    256                             <a href="https://www.google.com/finance?q='. $fromto .'" title="Google Finance"><div id="gc"><img src="' . plugins_url() . '/woocommerce/assets/images/ajax-loader.gif" alt="loading..." /></div></a>
    257                             <img src="https://www.google.com/finance/chart?q=CURRENCY:'. $fromto .'&tkr=1&p=5Y&chst=vkc&chs=400x140"></img><br/>
    258                         </td>
    259                     </tr>
    260 
    261248                    <tr valign="top">
    262249                        <th class="titledesc" scope="row">
Note: See TracChangeset for help on using the changeset viewer.