Plugin Directory

Changeset 1533811


Ignore:
Timestamp:
11/14/2016 03:20:21 PM (9 years ago)
Author:
oshingler
Message:

v2.57

Location:
olimometer
Files:
65 added
3 edited

Legend:

Unmodified
Added
Removed
  • olimometer/trunk/olimometer.php

    r1400670 r1533811  
    66Author: Oliver Shingler
    77Author URI: http://www.speaktothegeek.co.uk
    8 Version: 2.56
     8Version: 2.57
    99*/
    1010
  • olimometer/trunk/readme.txt

    r1408249 r1533811  
    6161
    6262`<?php echo show_olimometer(1,'align_right');?>` in your templates or [olimometer id=1 css_class="align_right"] in a post replacing 1 with the actual id of your Olimometer.
    63 
    64 = I've found a bug / have a suggestion =
    65 
    66 You can contact me via Twitter @OliverShingler, chat on the forum http://wordpress.org/support/plugin/olimometer or you can leave a comment on the plugin's official page http://www.speaktothegeek.co.uk/oliblog/olimometer. I can't make any promises but I will do my best.
    6763
    6864= How do I change the thermometer image? =
     
    117113== Changelog ==
    118114
     115= 2.57 =
     116* Fix for SQL injection vulnerability
     117
    119118= 2.56 =
    120119* Updated to work with WordPress 4.5 - please note that in some cases this update will break your existing Olimometers and they may need reconfiguring.
     
    287286== Upgrade Notice ==
    288287
     288= 2.57 =
     289* Fix for SQL injection vulnerability
     290
    289291= 2.56 =
    290292* Updated to work with WordPress 4.5 - please note that in some cases this update will break your existing Olimometers and they may need reconfiguring.
  • olimometer/trunk/thermometer.php

    r710347 r1533811  
    1919
    2020// What is the id of the olimometer to draw?
    21 $olimometer_id = $_GET['olimometer_id'];
    22 
     21// Check it's numeric to stop SQL Injection attack.
     22if(is_numeric($_GET['olimometer_id'])) {
     23    $olimometer_id = $_GET['olimometer_id'];
     24}
     25else {
     26    $olimometer_id = 1;
     27}
    2328
    2429// Load this Olimometer's details
Note: See TracChangeset for help on using the changeset viewer.