Plugin Directory

Changeset 2852745


Ignore:
Timestamp:
01/23/2023 08:16:16 AM (3 years ago)
Author:
rvola
Message:

Bump 2.4.1
https://github.com/rvola/wp-original-media-path/releases/tag/2.4.1

Location:
wp-original-media-path/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-original-media-path/trunk/readme.txt

    r2807794 r2852745  
    66Requires at least: 3.5
    77Tested up to: 6.1
    8 Stable tag: 2.4.0
     8Stable tag: 2.4.1
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7777
    7878== Changelog ==
     79
     80= 2.4.1 | 2023-01-13 =
     81* Placeholder minor modification
     82* Improve force to clean input regex
     83* Input value improvement (thanks Rio Darmawan)
    7984
    8085= 2.4.0 | 2018-10-22 =
  • wp-original-media-path/trunk/wp_original_media_path.php

    r2807794 r2852745  
    66Description:            Change the location for the uploads folder for WordPress
    77
    8 Version:                2.4.0
    9 Revision:               2021-05-06
     8Version:                2.4.1
     9Revision:               2023-01-23
    1010Creation:               2013-01-06
    1111
     
    3535    const I18N = "wp-original-media-path";
    3636    const SLUG = "wpomp";
    37     const VERSION = "2.4.0";
     37    const VERSION = "2.4.1";
    3838
    3939    private static $singleton = null;
     
    120120
    121121    public static function cleanValue( $value ) {
    122 
    123         if ( get_option( 'wpomp_mode' ) != true ) {
    124             $value = strtolower( $value );
    125             $value = remove_accents( $value );
    126             $value = preg_replace( '/[^a-z0-9-_:\.\/]/', '', $value );
    127             $value = rtrim( $value, '/\\' );
    128             $value = trim( $value, '/\\' );
    129         }
     122        $value = esc_html( $value );
     123
     124        $value = strtolower( $value );
     125        $value = remove_accents( $value );
     126        $value = preg_replace( '/[^a-z0-9-_:?@=#\.\/]/', '', $value );
     127        $value = rtrim( $value, '/\\' );
     128        $value = trim( $value, '/\\' );
    130129
    131130        return $value;
     
    286285                'description' => sprintf( __( 'Simply specify the url for your upload folder. Be careful, if you want a domain other than %s, make sure to point the domain (DNS) to the desired folder on your current server. The plugin can not upload to any other server than this one.',
    287286                    self::I18N ), '<strong>' . home_url() . '</strong>' ),
    288                 'placeholder' => 'http://'
     287                'placeholder' => 'https://'
    289288            ),
    290289        );
     
    336335
    337336}
     337
    338338add_action( 'plugins_loaded', array( 'RVOLA\WPOMP', 'load' ), 10 );
    339339register_activation_hook( __FILE__, array( 'RVOLA\WPOMP', 'activation' ) );
Note: See TracChangeset for help on using the changeset viewer.