Plugin Directory

Changeset 777917


Ignore:
Timestamp:
09/24/2013 07:04:36 PM (12 years ago)
Author:
joshua.strebel
Message:

security related changes

Location:
pagely-reseller-management/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pagely-reseller-management/trunk/partner-api.php

    r732491 r777917  
    44Plugin URI: https://docs-api.pagely.com/reseller-plugin/
    55Description: For Pagely Resellers
    6 Version: 3.1.5
     6Version: 3.1.6
    77Author: joshua.strebel
    8 Author URI: https://page.ly
     8Author URI: https://pagely.com
    99
    1010*/
     
    7878class PagelyApi {
    7979
    80    var $ver ='p3.1.4';
     80   var $ver ='p3.1.6';
    8181   var $pagely_api_sec = '';
    8282   var $bypass_pagely_varnish = true;       // if running on page.ly, need to bypass varnish
    8383   var $live_endpoint           = 'https://api.pagely.com/v1';
    84   // var $sandbox_endpoint      = 'https://sandbox-api.pagely.com/v1';
    85    var $sandbox_endpoint        = 'http://api.hcs/v1';
     84  var $sandbox_endpoint        = 'https://sandbox-api.pagely.com/v1';
     85   //var $sandbox_endpoint      = 'http://api.hcs/v1';
    8686   var $api_endpoint            = '';
    8787    static $pp_portal_url       = 'https://atomic.pagely.com/';
     
    339339        // lets check for a post action from the plans page
    340340   
     341       
     342       
    341343        if (isset($_POST['pagely_order']['plan'])) {
    342344            // plan preselected
     
    490492        if (! $item ) {
    491493            //look for post
    492             $item = $_POST['item'];
     494            $item = htmlentities( $_POST['item'] );
     495           
    493496        }
    494497        // make sure we have an array
     
    538541    public function _delitem_cart($item_id = false) {
    539542        if (!$item_id && $_POST['item_id']) {
    540             $item_id = $_POST['item_id'];
     543            $item_id = htmlentities( $_POST['item_id'] );
    541544        }
    542545        // get the cart
     
    682685        header( "Content-Type: application/json" );
    683686
    684         $field = $_POST['field'];
     687        $field = htmlentities($_POST['field']);
    685688        // check to see if the submitted nonce matches with the generated nonce we created earlier
    686689       
     
    728731        $form =  $_POST['pagely_order'];
    729732        foreach ($form as $k => $v) {
    730             $form[$k] = trim($v);
     733            $form[$k] = trim( htmlentities( strip_tags($v) ) );
    731734        }
    732735       
     
    762765        $form = $this->_get_pp_session('acc_form_post');
    763766        foreach ($form as $k => $v) {
    764             $form[$k] = trim($v);
     767            $form[$k] = trim( htmlentities( strip_tags($v) ) );
    765768        }
    766769        // lets add their plan choice to the session
     
    964967        $form = $_POST['pagely_order'];
    965968        foreach ($form as $k => $v) {
    966             $form[$k] = strip_tags(trim($v));
     969            $form[$k] = trim( htmlentities( strip_tags($v) ) );
    967970        }
    968971       
     
    12411244            if (is_array($v)) {
    12421245                foreach ($v as $kk => $vv) {
    1243                     $v[$kk] = strip_tags( trim($vv) );
     1246                    $v[$kk] =  trim( htmlentities( strip_tags($vv) ) );
    12441247                }
    12451248            } else {
    1246                 $form[$k] = strip_tags( trim($v) );
     1249                $form[$k] = trim( htmlentities( strip_tags($v) ) );
    12471250            }
    12481251        }
    12491252        // array of products to be added to cart
    12501253        $items = $form;
     1254       
    12511255       
    12521256       
  • pagely-reseller-management/trunk/readme.txt

    r732491 r777917  
    2020Read [the documentation here](https://docs-api.pagely.com/reseller-plugin/).
    2121== Changelog ==
     22= 3.1.6 =
     23Security related changes
    2224= 3.1.5 =
    2325new options page class, and options
Note: See TracChangeset for help on using the changeset viewer.