Changeset 2852745
- Timestamp:
- 01/23/2023 08:16:16 AM (3 years ago)
- Location:
- wp-original-media-path/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp_original_media_path.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-original-media-path/trunk/readme.txt
r2807794 r2852745 6 6 Requires at least: 3.5 7 7 Tested up to: 6.1 8 Stable tag: 2.4. 08 Stable tag: 2.4.1 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 77 77 78 78 == 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) 79 84 80 85 = 2.4.0 | 2018-10-22 = -
wp-original-media-path/trunk/wp_original_media_path.php
r2807794 r2852745 6 6 Description: Change the location for the uploads folder for WordPress 7 7 8 Version: 2.4. 09 Revision: 202 1-05-068 Version: 2.4.1 9 Revision: 2023-01-23 10 10 Creation: 2013-01-06 11 11 … … 35 35 const I18N = "wp-original-media-path"; 36 36 const SLUG = "wpomp"; 37 const VERSION = "2.4. 0";37 const VERSION = "2.4.1"; 38 38 39 39 private static $singleton = null; … … 120 120 121 121 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, '/\\' ); 130 129 131 130 return $value; … … 286 285 '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.', 287 286 self::I18N ), '<strong>' . home_url() . '</strong>' ), 288 'placeholder' => 'http ://'287 'placeholder' => 'https://' 289 288 ), 290 289 ); … … 336 335 337 336 } 337 338 338 add_action( 'plugins_loaded', array( 'RVOLA\WPOMP', 'load' ), 10 ); 339 339 register_activation_hook( __FILE__, array( 'RVOLA\WPOMP', 'activation' ) );
Note: See TracChangeset
for help on using the changeset viewer.