Changeset 3425729
- Timestamp:
- 12/23/2025 02:02:22 AM (3 months ago)
- Location:
- stickeasy-protected-contact-form
- Files:
-
- 11 added
- 5 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/assets (added)
-
tags/1.0.1/assets/spcf-helper.js (added)
-
tags/1.0.1/assets/spcf-script.js (added)
-
tags/1.0.1/assets/spcf-style.css (added)
-
tags/1.0.1/languages (added)
-
tags/1.0.1/languages/stickeasy-protected-contact-form-ja.mo (added)
-
tags/1.0.1/languages/stickeasy-protected-contact-form-ja.po (added)
-
tags/1.0.1/languages/stickeasy-protected-contact-form.pot (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/stickeasy-protected-contact-form.php (added)
-
trunk/languages/stickeasy-protected-contact-form-ja.mo (modified) (previous)
-
trunk/languages/stickeasy-protected-contact-form-ja.po (modified) (2 diffs)
-
trunk/languages/stickeasy-protected-contact-form.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/stickeasy-protected-contact-form.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stickeasy-protected-contact-form/trunk/languages/stickeasy-protected-contact-form-ja.po
r3400723 r3425729 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: StickEasy Protected Contact Form 1.0. 0\n"3 "Project-Id-Version: StickEasy Protected Contact Form 1.0.1\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2025-1 1-20 02:54:38+0000\n"6 "PO-Revision-Date: 2025-1 1-20 03:01:23+0000\n"5 "POT-Creation-Date: 2025-12-23 01:36:13+0000\n" 6 "PO-Revision-Date: 2025-12-23 01:37:05+0000\n" 7 7 "Last-Translator: Kasuga\n" 8 8 "Language-Team: \n" … … 185 185 msgstr "ログをクリア" 186 186 187 msgid "Log is stored in %s."188 msgstr "ログは %s に保存されています。"189 -
stickeasy-protected-contact-form/trunk/languages/stickeasy-protected-contact-form.pot
r3400723 r3425729 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: StickEasy Protected Contact Form 1.0. 0\n"3 "Project-Id-Version: StickEasy Protected Contact Form 1.0.1\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2025-1 1-20 02:54:38+0000\n"5 "POT-Creation-Date: 2025-12-23 01:36:13+0000\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: \n" … … 185 185 msgstr "" 186 186 187 msgid "Log is stored in %s."188 msgstr ""189 -
stickeasy-protected-contact-form/trunk/readme.txt
r3418199 r3425729 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 105 105 106 106 == Changelog == 107 = 1.0.1 = 108 * Security fix: Moved spam logs to a non-public directory. 109 107 110 = 1.0.0 = 108 111 * Initial Release. -
stickeasy-protected-contact-form/trunk/stickeasy-protected-contact-form.php
r3400723 r3425729 3 3 * Plugin Name: StickEasy Protected Contact Form 4 4 * Description: Just drop the shortcode on any page — your super simple, spam-protected contact form is ready! 5 * Version: 1.0. 05 * Version: 1.0.1 6 6 * Author: Kasuga 7 7 * License: GPLv2 or later … … 149 149 150 150 /** 151 * Get the path to the log file ( inside uploads).151 * Get the path to the log file (non-public directory). 152 152 * 153 153 * @return string Log file path. 154 154 */ 155 155 function spcf_get_log_file_path() { 156 $upload_dir = wp_upload_dir(); 157 $log_dir = trailingslashit( $upload_dir['basedir'] ) . 'stickeasy-protected-contact-form'; 156 $log_dir = WP_CONTENT_DIR . '/spcf-logs'; 158 157 159 158 if ( spcf_init_filesystem() ) { … … 161 160 162 161 if ( ! $wp_filesystem->is_dir( $log_dir ) ) { 163 164 if ( ! $wp_filesystem->mkdir( $log_dir ) ) { 165 wp_mkdir_p( $log_dir ); 166 } 162 $wp_filesystem->mkdir( $log_dir ); 167 163 } 168 164 } else { … … 666 662 <?php wp_nonce_field( 'spcf_settings_nonce' ); ?> <textarea readonly rows="12" style="width:100%; font-family:monospace;"><?php echo esc_textarea( $log_display ); ?></textarea> 667 663 <input type="submit" name="spcf_clear_log" class="button" value="<?php esc_attr_e( 'Clear Log', 'stickeasy-protected-contact-form' ); ?>"> 668 <p class="description">669 <?php670 printf(671 /* translators: %s: Directory path where the log file is stored, relative to the WordPress root directory. */672 esc_html__( 'Log is stored in %s.', 'stickeasy-protected-contact-form' ),673 esc_html( str_replace( ABSPATH, '', dirname( spcf_get_log_file_path() ) ) )674 );675 ?>676 </p>677 664 </form> 678 665 </div> … … 687 674 delete_option( 'spcf_options' ); 688 675 689 $upload_dir = wp_upload_dir(); 690 $log_dir = trailingslashit( $upload_dir['basedir'] ) . 'stickeasy-protected-contact-form'; 691 $logfile = trailingslashit( $log_dir ) . 'spcf-log.txt'; 676 $log_dir = WP_CONTENT_DIR . '/spcf-logs'; 677 $logfile = trailingslashit( $log_dir ) . 'spcf-log.txt'; 692 678 693 679 if ( spcf_init_filesystem() ) { 694 680 global $wp_filesystem; 681 695 682 if ( $wp_filesystem->exists( $logfile ) ) { 696 683 $wp_filesystem->delete( $logfile ); 697 684 } 685 698 686 if ( $wp_filesystem->is_dir( $log_dir ) ) { 699 687 $wp_filesystem->rmdir( $log_dir, true );
Note: See TracChangeset
for help on using the changeset viewer.