Plugin Directory

Changeset 2342036


Ignore:
Timestamp:
07/17/2020 06:05:51 AM (6 years ago)
Author:
PowieT
Message:

bugfix domain input

Location:
powies-whois
Files:
13 added
2 edited

Legend:

Unmodified
Added
Removed
  • powies-whois/trunk/powies-whois.php

    r2340976 r2342036  
    44Plugin URI: https://powie.de/wordpress/whois/
    55Description: Domain WHOIS Shortcode Plugin
    6 Version: 0.9.32
     6Version: 0.9.33
    77License: GPLv2
    88Author: Thomas Ehrhardt
     
    134134        //Whois ausführen
    135135        $whois=new psWhois;
    136         $result=$whois->lookup(trim($_POST['domain']).$_POST['tld'], $PWHOIS_SERVERS);
     136        //sanitize
     137        $tld    = sanitize_text_field( $_POST['tld'] );
     138        $domain = sanitize_text_field( $_POST['domain'] );
     139        //check that domain is realy domainified
     140        $dom = filter_var($domain.$tld, FILTER_VALIDATE_DOMAIN);
     141        $result=$whois->lookup($dom, $PWHOIS_SERVERS);
    137142        //file_put_contents(WP_CONTENT_DIR."/logs/pwhois.log",$_POST['domain']."\n",FILE_APPEND );
    138143        //testen
  • powies-whois/trunk/readme.txt

    r2340976 r2342036  
    55Requires at least: 4.0
    66Tested up to: 5.4.2
    7 Stable tag: 0.9.32
     7Stable tag: 0.9.33
    88License: GPLv2
    99
     
    5757
    5858== Changelog ==
    59 = 0.9.32 (15.07.2020) =
     59= 0.9.32 - 0.9.33 (15.07.2020) =
    6060* Security Fix - https://wpvulndb.com/vulnerabilities/10300
    6161
Note: See TracChangeset for help on using the changeset viewer.