Plugin Directory

Changeset 1366331

Timestamp:
03/08/2016 03:32:52 AM (8 years ago)
Author:
filosofo
Message:

Updating trunk

Location:
wp-db-backup/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-db-backup/trunk/README.markdown

    r1194527 r1366331  
    55Donate link: http://austinmatzko.com/wordpress-plugins/wp-db-backup/
    66Tags: mysql, database, backup, cron
    7 Requires at least: 2.0.3
    8 Tested up to: 4.2.2
    9 Stable tag: 2.3.0
     7Requires at least:
     8Tested up to: 4..2
     9Stable tag: 2.3.
    1010
    1111On-demand backup of your WordPress database.
  • wp-db-backup/trunk/readme.txt

    r1194527 r1366331  
    33Donate link: http://austinmatzko.com/wordpress-plugins/wp-db-backup/
    44Tags: mysql, database, backup, cron
    5 Requires at least: 2.0.3
    6 Tested up to: 4.2.2
    7 Stable tag: 2.3.0
     5Requires at least:
     6Tested up to: 4..2
     7Stable tag: 2.3.
    88
    99On-demand backup of your WordPress database.
    ���  
    1818              NO WARRANTY.
    1919
    20     Copyright (c) 2015 Austin Matzko
     20    Copyright (c) 201 Austin Matzko
    2121
    2222[Source Code on GitHub](https://github.com/matzko/wp-db-backup)
  • wp-db-backup/trunk/wp-db-backup.php

    r1194527 r1366331  
    66Author: Austin Matzko
    77Author URI: http://austinmatzko.com/
    8 Version: 2.3.0
    9 
    10 Copyright 2015  Austin Matzko  (email : austin at pressedcode.com)
     8Version: 2.3.
     9
     10Copyright 201  Austin Matzko  (email : austin at pressedcode.com)
    1111
    1212    This program is free software; you can redistribute it and/or modify
     
    299299            break;
    300300        case 'smtp':
    301             if ( get_option('wpdb_backup_recip') != $_POST['backup_recipient'] ) {
    302                 update_option('wpdb_backup_recip', $_POST['backup_recipient'] );
     301            $email = sanitize_text_field(wp_unslash($_POST['backup_recipient']));
     302            if ( get_option('wpdb_backup_recip') != $email) {
     303                update_option('wpdb_backup_recip', $email);
    303304            }
    304305            echo '
    305                 setProgress("' . sprintf(__('Your backup has been emailed to %s','wp-db-backup'), $_POST['backup_recipient']) . '");
     306                setProgress("' . sprintf(__('Your backup has been emailed to %s','wp-db-backup'), $) . '");
    306307                window.onbeforeunload = null;
    307                 fram.src = "' . $download_uri . '&via=email&recipient=' . $_POST['backup_recipient'] . '";
     308                fram.src = "' . $download_uri . '&via=email&recipient=' . $ . '";
    308309            ';
    309310            break;
     
    432433        if (false !== $this->backup_file) {
    433434            if ('smtp' == $_POST['deliver']) {
    434                 $this->deliver_backup($this->backup_file, $_POST['deliver'], $_POST['backup_recipient'], 'main');
    435                 if ( get_option('wpdb_backup_recip') != $_POST['backup_recipient'] ) {
    436                     update_option('wpdb_backup_recip', $_POST['backup_recipient'] );
     435                $email = sanitize_text_field(wp_unslash($_POST['backup_recipient']));
     436                $this->deliver_backup($this->backup_file, $_POST['deliver'], $email, 'main');
     437                if ( get_option('wpdb_backup_recip') != $email ) {
     438                    update_option('wpdb_backup_recip', $email );
    437439                }
    438440                wp_redirect($this->page_url);
     
    865867                        $values = array();
    866868                        foreach ($row as $key => $value) {
    867                             if ($ints[strtolower($key)]) {
     869                            if () {
    868870                                // make sure there are no blank spots in the insert syntax,
    869871                                // yet try to avoid quotation marks around integers
     
    11481150                break;
    11491151            case 'smtp':
    1150                 if (! is_email($_POST['backup_recipient'])) {
     1152                $email = sanitize_text_field(wp_unslash($_POST['backup_recipient']));
     1153                if (! is_email($email)) {
    11511154                    $feedback .= get_option('admin_email');
    11521155                } else {
    1153                     $feedback .= $_POST['backup_recipient'];
     1156                    $feedback .= $;
    11541157                }
    11551158                $feedback = '<br />' . sprintf(__('Your backup has been emailed to %s','wp-db-backup'), $feedback);
Note: See TracChangeset for help on using the changeset viewer.