Plugin Directory

Changeset 3014777


Ignore:
Timestamp:
12/27/2023 03:53:11 PM (2 years ago)
Author:
poporon
Message:

2.5.0.1

  • Fixed: Fixed to remove the link from the URL as a response to the vulnerability.
  • Fixed: Fixed a bug that site icons could not be retrieved.
Location:
pz-linkcard/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pz-linkcard/trunk/lib/pz-linkcard-cacheman-list.php

    r3013786 r3014777  
    295295                        $is_samepage    =   $url_info['is_samepage'];   // 同一ページ
    296296
    297                         // 表示用のURLを作成
    298                         $html_url           =   null;
     297                        // URLの警告マーク
     298                        $html_url_error     =   '';
    299299                        if  ($data->alive_result < 100 || $data->alive_result >= 400 ) {
    300                             if  ($data->no_failure ) {
    301                                 $html_url   .=  '<span class="pz-lkc-man-body-url-error-ignore" title="'.__('The latest HTTP code is in error, but ignore it.', $this->text_domain ).'">'.__('&#x26a0;&#xfe0f;', $this->text_domain ).'</span>&nbsp;';
     300                            if  ($data->no_failure ) {      // エラー無視が有効か
     301                                $temp_icon  =   __('&#x26a0;&#xfe0f;', $this->text_domain );    // ⚠️
     302                                $temp_class =   'pz-lkc-man-body-url-error-ignore';             // エラー無視
     303                                $temp_title =   __('The latest HTTP code is in error, but ignore it.', $this->text_domain );
    302304                            } else {
    303                                 $html_url   .=  '<span class="pz-lkc-man-body-url-error" title="'.__('The latest HTTP code is in error. You can change it to ignore the error from the edit screen.', $this->text_domain ).'">'.__('&#x26d4;&#xfe0f;', $this->text_domain ).'</span>&nbsp;';
    304                             }
    305                         }
     305                                $temp_icon  =   __('&#x26d4;&#xfe0f;', $this->text_domain );    // ⛔️エラー
     306                                $temp_class =   'pz-lkc-man-body-url-error';                    // エラー
     307                                $temp_title =   __('The latest HTTP code is in error. You can change it to ignore the error from the edit screen.', $this->text_domain );
     308                            }
     309                            $html_url_error =   '<span class="'.$temp_class.'" title="'.$temp_title.'">'.$temp_icon.'</span>&nbsp;';
     310                        }
     311
     312                        // 表示用のURL
    306313                        if  ($is_internal ) {
    307                             $html_url       .=  '<a href="'.esc_url($url ).'" title="'.esc_url($url ).'" rel="internal" target="_self">';
     314                            $temp_href      =   esc_url($url );
     315                            $temp_rel       =   'internal';
     316                            $temp_target    =   '_self';
    308317                        } else {
    309                             $html_url       .=  '<a href="'.esc_url($url ).'" title="'.esc_url($url ).'" rel="external noopenner noreferrer" target="_blank">';
    310                         }
    311                         $html_url           .=  esc_url($this->pz_DecodeURL($url ) ).'</a>';
     318                            $temp_href      =   esc_url($url );
     319                            $temp_rel       =   'external noopenner noreferrer';
     320                            $temp_target    =   '_blank';
     321                        }
     322//                      $html_url           =   '<a href="'.$temp_href.'" title="'.$temp_href.'" rel="'.$temp_rel.'" target="'.$temp_target.'">'.esc_url($this->pz_DecodeURL($url ) ).'</a>';
     323                        $html_url           =   '<span title="'.$temp_href.'">'.esc_url($this->pz_DecodeURL($url ) ).'</span>';
    312324
    313325                        // タイトル
  • pz-linkcard/trunk/lib/pz-linkcard-cacheman.php

    r3013786 r3014777  
    99    <input type="text" class="pz-lkc-display pz-lkc-hide" name="pz-lkc-develop"    value="<?php echo $this->options['develop-mode']; ?>" />
    1010<?php
     11
    1112    $data               =   null;
    1213    if  (isset($_REQUEST['update'] ) ) {
  • pz-linkcard/trunk/lib/pz-linkcard-settings.php

    r3013786 r3014777  
    7474    $changelog          =   trim($changelog );
    7575    $changelog          =   esc_html($changelog );
    76 
    7776    $changelog          =   preg_replace('/^\* /mi', '*&ensp;', $changelog);
    7877    $changelog          =   preg_replace('/^  /mi', '&ensp;&ensp;', $changelog);
    79 
    8078    $changelog          =   preg_replace('/= (.*) =\n/i', '<h4>'.__('Version', $this->text_domain ).' $1</h4>', $changelog);
    8179    $changelog          =   preg_replace('/(?<=^|(?<=[^a-zA-Z0-9-_\.]))@([A-Za-z]+[A-Za-z0-9_]+)/i', '<a href="http://www.twitter.com/$1" rel="external noopenner noreferrer" target="_blank">@$1</a>', $changelog);
  • pz-linkcard/trunk/pz-linkcard.php

    r3013786 r3014777  
    55Plugin URI:     http://poporon.poponet.jp/pz-linkcard
    66Description:    リンクをカード形式で表示します。
    7 Version:        2.5.0
     7Version:        2.5.0.1
    88Author:         Poporon
    99Author URI:     http://poporon.poponet.jp
     
    1717    protected   $defaults           =
    1818        array(
    19             'plugin-version'        =>  '2.5.0',
     19            'plugin-version'        =>  '2.5.0.1',
    2020            'plugin-name'           =>  'Pz-LinkCard',
    2121            'plugin-abbreviation'   =>  'Pz-LkC',
     
    818818                // サムネイル取得WebAPI
    819819                if  ($this->options['thumbnail-api'] ) {
    820                     $temp               =   $this->options['thumbnail-api'];
     820                    $temp                   =   $this->options['thumbnail-api'];
    821821                    if  (strstr($temp, '%' )    <>  '' ) {
    822822                        $temp               =   preg_replace('/%TITLE%/',       $title,                 $temp );
     
    827827                    }
    828828                    $html_thumbnail =   '<img class="lkc-thumbnail-img" src="'.$temp.'" alt="'.$thumbnail_alt.'" />';
    829 
    830829                }
    831830            }
     
    848847                if  ($this->options['favicon-api'] ) {
    849848                    $temp                   =   $this->options['favicon-api'];
    850                     if  (strstr($temp, '%' ) === true ) {
     849                    if  (strstr($temp, '%' )    <>  '' ) {
     850                        $temp               =   preg_replace('/%TITLE%/',       $title,                 $temp );
     851                        $temp               =   preg_replace('/%SITE_NAME%/',   $site_name,             $temp );
    851852                        $temp               =   preg_replace('/%DOMAIN_URL%/',  $domain_url,            $temp );
    852853                        $temp               =   preg_replace('/%DOMAIN%/',      $domain,                $temp );
  • pz-linkcard/trunk/readme.txt

    r3013786 r3014777  
    152152== Changelog ==
    153153
     154= 2.5.0.1 =
     155* カード管理画面にて外部サイトへのリンクを外しました。
     156  Fixed: Fixed to remove the link from the URL as a response to the vulnerability.
     157* サイトアイコンが取得できない不具合を修正。(Thanks 澤田 芳弘 @SWD on x.com)
     158  Fixed: Fixed a bug that site icons could not be retrieved.
     159
    154160= 2.5.0 =
    155161* WordPress 6.4.2 での動作確認。
     
    161167* 文字コードの判定に失敗すると異常終了になってしまう不具合を修正。
    162168  Fixed: Fixed a bug that caused abnormal termination when character code determination failed.
    163 * 設定画面の「外部リンク」タブ及び「内部リンク」タブの「代替テキスト」にパラメータを追加。(Thanks 澤田 芳弘 @SWD on Twitter)
     169* 設定画面の「外部リンク」タブ及び「内部リンク」タブの「代替テキスト」にパラメータを追加。(Thanks 澤田 芳弘 @SWD on x.com)
    164170  Added: Added a parameter to "Alternative Text" in the "External Links" and "Internal Links" tabs of the Settings screen.
    165171
     
    173179* WordPress 6.3.1 での動作確認。
    174180  Compatible with WordPress 6.3.1.
    175 * カード管理画面にてSQLの構文エラーがあったのを修正。(Thanks @in_seki on Twitter)
     181* カード管理画面にてSQLの構文エラーがあったのを修正。(Thanks @in_seki on x.com)
    176182  Fixed: Fixed SQL syntax error in card management screen.
    177 * 設定画面の「外部リンク」タブに「サムネイル」と「サイトアイコン」の「代替テキスト」の設定を追加。(Thanks @SWD on Twitter)
     183* 設定画面の「外部リンク」タブに「サムネイル」と「サイトアイコン」の「代替テキスト」の設定を追加。(Thanks @SWD on x.com)
    178184  Added: Added "ALT Text" settings for "Thumbnail" and "Site Icon" to the "External Links" tab of the Settings page.
    179 * 設定画面の「内部リンク」タブに「サムネイル」と「サイトアイコン」の「代替テキスト」の設定を追加。(Thanks @SWD on Twitter)
     185* 設定画面の「内部リンク」タブに「サムネイル」と「サイトアイコン」の「代替テキスト」の設定を追加。(Thanks @SWD on x.com)
    180186  Added: Added "ALT Text" settings for "Thumbnail" and "Site Icon" to the "Internal Links" tab of the Settings page.
    181187* 設定画面の「Twitter」のシェア数の単位を「Posts」と「Tweets」から選べる設定を追加。
Note: See TracChangeset for help on using the changeset viewer.