Plugin Directory

Changeset 3133137


Ignore:
Timestamp:
08/09/2024 10:08:49 AM (20 months ago)
Author:
jamesdlow
Message:

1.4.1

  • Check for blanks in Restlib::get_param()
Location:
pageapp
Files:
18 added
3 edited

Legend:

Unmodified
Added
Removed
  • pageapp/trunk/inc/restlib.php

    r3023859 r3133137  
    1919    /* Common methods */
    2020    public function get_param($key, $default = null) {
    21         return isset($_REQUEST[$key]) ? ($this->is_wordpress ? stripslashes($_REQUEST[$key]) : $_REQUEST[$key]) : $default;
     21        $value = $_REQUEST[$key];
     22        if (isset($value) && $value != null && $value != '') {
     23            return ($this->is_wordpress ? stripslashes($_REQUEST[$key]) : $_REQUEST[$key]);
     24         } else {
     25            return $default;
     26         }
    2227    }
    2328    public function assert_param($key, $description = null) {
  • pageapp/trunk/pageapp.php

    r3129768 r3133137  
    44Plugin URI: https://wordpress.org/plugins/pageapp/
    55Description: Extensions to Wordpress wp-json for the PageApp API and mobile framework
    6 Version: 1.4.0
     6Version: 1.4.1
    77Author: PageApp
    88Author URI: https://www.pageapp.com
  • pageapp/trunk/readme.txt

    r3129768 r3133137  
    44Requires at least: 3.0
    55Tested up to: 6.5.4
    6 Stable tag: 1.4.0
     6Stable tag: 1.4.1
    77License: © 2024 Thireen32 Pty Ltd
    88Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=K6VKWB3HZB2T2&item_name=Donation%20to%20jameslow%2ecom&currency_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8
     
    2828
    2929== Changelog ==
     30
     31= 1.4.1 =
     32* Check for blanks in Restlib::get_param()
    3033
    3134= 1.4.0 =
Note: See TracChangeset for help on using the changeset viewer.