Skip to content
Permalink
Browse files Browse the repository at this point in the history
1.26.1 Updates. XSS Vulnerability fixed.
git-svn-id: https://plugins.svn.wordpress.org/maxbuttons/trunk@1000617 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
johnbhartley committed Oct 2, 2014
1 parent ba6cfcc commit e74564c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
11 changes: 8 additions & 3 deletions includes/maxbuttons-button.php
Expand Up @@ -2,9 +2,11 @@
include_once 'arrays.php';
include_once 'constants.php';

if (isset($_GET['id']) && $_GET['id'] != '') {
if (isset($_GET['id']) && $_GET['id'] != '' && intval($_GET['id']) != 0) {
$button = maxbuttons_get_button($_GET['id']);
}
} elseif(isset($_GET['id'])) {
die();
} else {}

$maxbutton_name_value = isset($button) ? $button->name : '';
$maxbutton_description_value = isset($button) ? $button->description : '';
Expand Down Expand Up @@ -193,8 +195,11 @@ function maxbuttons_strip_px($value) {

<script type="text/javascript">
<?php if ($redirect == true) { ?>
<?php if(intval($button_id != 0)) { ?>
window.location = "<?php echo admin_url() ?>admin.php?page=maxbuttons-controller&action=button&id=<?php echo $button_id ?>";
<?php } ?>
<?php } else {
die();
} } ?>

jQuery(document).ready(function() {
<?php if (isset($_GET['id']) && $_GET['id'] > 0) { ?>
Expand Down
4 changes: 2 additions & 2 deletions maxbuttons.php
Expand Up @@ -3,7 +3,7 @@
Plugin Name: MaxButtons
Plugin URI: http://maxbuttons.com
Description: The best WordPress button generator. This is the free version; the Pro version <a href="http://maxbuttons.com/?ref=mbfree">can be found here</a>.
Version: 1.26.0
Version: 1.26.1
Author: Max Foundry
Author URI: http://maxfoundry.com
Expand All @@ -17,7 +17,7 @@

function maxbuttons_set_global_paths() {
define('MAXBUTTONS_VERSION_KEY', 'maxbuttons_version');
define('MAXBUTTONS_VERSION_NUM', '1.26.0');
define('MAXBUTTONS_VERSION_NUM', '1.26.1');
define('MAXBUTTONS_PLUGIN_NAME', trim(dirname(plugin_basename(__FILE__)), '/'));
define('MAXBUTTONS_PLUGIN_URL', plugins_url() . '/' . MAXBUTTONS_PLUGIN_NAME);
}
Expand Down
21 changes: 12 additions & 9 deletions readme.txt
Expand Up @@ -3,7 +3,7 @@ Contributors: maxfoundry, arcware, johnbhartley
Tags: button, buttons, css, css3, css3 icon, call to action, free, icon, icons, link, permalink, plugin, seo, shortcode, shortcodes, shortlinks, wordpress button plugin, wordpress button generator, css3 button plugin, css3 button generator, css wordpress button, css3 wordpress button, social media button, wordpress buttons plugin, wp button creator, create wordpress buttons, button generator, create button icon, font awesome, fontawesome
Requires at least: 3.4
Tested up to: 4.0
Stable tag: 1.26.0
Stable tag: 1.26.1

A CSS3 button generator for WordPress that's powerful and so easy to use that anyone can create beautiful buttons.

Expand All @@ -12,16 +12,16 @@ Create great-looking CSS3 buttons that can be used on any post or page in your W

= Helpful Links =

* [How to Create WordPress Buttons?](http://www.maxbuttons.com/#CSS3/?utm_source=wordpress&utm_medium=mbrepo&utm_content=how-to-create&utm_campaign=plugin)
* [How to make a WordPress Buttons?](http://www.maxbuttons.com/?utm_source=wordpress&utm_medium=mbrepo&utm_content=how-to-make&utm_campaign=plugin)
* [What is a WordPress Button Generator?](http://maxbuttons.com/tour/button-editor/?utm_source=wordpress&utm_medium=mbrepo&utm_content=what-is-generator&utm_campaign=plugin)
* [How do I see my WordPress Buttons?](http://maxbuttons.com/tour/button-list/?utm_source=wordpress&utm_medium=mbrepo&utm_content=how-to-see&utm_campaign=plugin)
* [What's the best way to use Font Awesome with Wordpress?](http://www.maxbuttons.com/?utm_source=wordpress&utm_medium=mbrepo&utm_content=font-awesome&utm_campaign=plugin)
* [How to Create WordPress Buttons?](http://www.maxbuttons.com/#CSS3/?utm_source=wordpress&utm_medium=mbrepo&utm_content=how-to-create&utm_campaign=repo)
* [How to make a WordPress Buttons?](http://www.maxbuttons.com/?utm_source=wordpress&utm_medium=mbrepo&utm_content=how-to-make&utm_campaign=repo)
* [What is a WordPress Button Generator?](http://maxbuttons.com/tour/button-editor/?utm_source=wordpress&utm_medium=mbrepo&utm_content=what-is-generator&utm_campaign=repo)
* [How do I see my WordPress Buttons?](http://maxbuttons.com/tour/button-list/?utm_source=wordpress&utm_medium=mbrepo&utm_content=how-to-see&utm_campaign=repo)
* [What's the best way to use Font Awesome with Wordpress?](http://www.maxbuttons.com/?utm_source=wordpress&utm_medium=mbrepo&utm_content=font-awesome&utm_campaign=repo)


= WordPress Button Pack Libraries =

* [How do Button Pack libraries make me and my firm more effective?](http://www.maxbuttons.com/shop/category/button-packs/?utm_source=wordpress&utm_medium=mbrepo&utm_content=how-to-create&utm_campaign=plugin)
* [How do Button Pack libraries make me and my firm more effective?](http://www.maxbuttons.com/shop/category/button-packs/?utm_source=wordpress&utm_medium=mbrepo&utm_content=how-to-create&utm_campaign=repo)
* [What is a good Vector Icon Library to use with MaxButtons Pro?](http://maxvectors.com/)

= Highlights =
Expand All @@ -38,7 +38,7 @@ Create great-looking CSS3 buttons that can be used on any post or page in your W

= Upgrade to MaxButtons Pro =

Take your buttons to the next level with [MaxButtons Pro](http://www.maxbuttons.com/pricing/?utm_source=wordpress&utm_medium=mbrepo&utm_content=MBPro&utm_campaign=plugin), which gives you additional features such as:
Take your buttons to the next level with [MaxButtons Pro](http://www.maxbuttons.com/pricing/?utm_source=wordpress&utm_medium=mbrepo&utm_content=MBPro&utm_campaign=repo), which gives you additional features such as:

* **Icon Support** - Put icons to the left, right, top, or bottom of your text.
* **Multi-line text** - To add a second line of text for communicating extra information.
Expand All @@ -48,7 +48,7 @@ Take your buttons to the next level with [MaxButtons Pro](http://www.maxbuttons.
* **Height and Width** - Explicit options to set button height and width.
* **Shopp Integration** - Use buttons created with MaxButtons Pro as the shopping cart buttons of the Shopp e-commerce plugin.

And the best part is that you can get this awesome [CSS3 button generator](http://www.maxbuttons.com/?utm_source=wordpress&utm_medium=mbrepo&utm_content=CSS3&utm_campaign=plugin) for **only $19!**
And the best part is that you can get this awesome [CSS3 button generator](http://www.maxbuttons.com/?utm_source=wordpress&utm_medium=mbrepo&utm_content=CSS3&utm_campaign=repo) for **only $19!**

= How To Use =

Expand Down Expand Up @@ -137,6 +137,9 @@ Enable the container option and set the alignment property to either "display: i
</table>`

== Changelog ==
= 1.26.1 =
* Fixed an XSS vulnerability on the button creation page

= 1.26.0 =
* Placed button description in ThickBox when opened in Content Editor
* Added ability to get shortcode by button name along with button id
Expand Down

0 comments on commit e74564c

Please sign in to comment.