Changeset 3313475
- Timestamp:
- 06/17/2025 07:02:07 PM (9 months ago)
- Location:
- falling-cherry-flower/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
ytmr_falling_flower.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
falling-cherry-flower/trunk/readme.txt
r3313468 r3313475 36 36 == ChangeLog == 37 37 38 = Version 1.1 = 39 40 * Security updated 41 38 42 = Version 1.0 = 39 43 -
falling-cherry-flower/trunk/ytmr_falling_flower.php
r1726492 r3313475 4 4 Plugin URI: https://php.dogrow.net/wordpressplugin/falling-cherry-flower/ 5 5 Description: Falling cherry flower effect on the screen 6 Version: 1. 06 Version: 1.1 7 7 Author: DOGROW.NET 8 8 Author https://php.dogrow.net/ … … 51 51 // type 52 52 if(isset($this->m_shortcode_arg['type'])){ 53 if(file_exists($path_me.'/img/'.$this->m_shortcode_arg['type'])){ 54 $ary_prm['type'] = $this->m_shortcode_arg['type']; 53 $type = basename( sanitize_text_field( $this->m_shortcode_arg['type'] ) ); 54 if(preg_match( '/^[a-zA-Z0-9_\-]+$/', $type)){ 55 if(file_exists($path_me.'/img/'.$type)){ 56 $ary_prm['type'] = $type; 57 } 55 58 } 56 59 } … … 58 61 // speed 59 62 if(isset($this->m_shortcode_arg['speed'])){ 60 $speed = $this->m_shortcode_arg['speed'];63 $speed = intval( $this->m_shortcode_arg['speed'] ); 61 64 if((0 <= $speed) && ($speed <= 5)){ 62 65 $ary_prm['speed'] = $speed; … … 64 67 } 65 68 //------------------------------------------------------------------ 66 $img_dir = plugins_url('img/'.$ary_prm['type'], __FILE__).'/'; 69 $img_dir = plugins_url( 'img/'.$ary_prm['type'].'/', __FILE__ ); 70 $img_dir = esc_url_raw( trailingslashit( $img_dir ) ); // 出力前にエスケープ 67 71 //------------------------------------------------------------------ 68 72 echo <<< EOM
Note: See TracChangeset
for help on using the changeset viewer.