Zipuの日常生活

Zipuの日常生活

日ごろの出来事を気ままに書いていくブログ。

Amebaでブログを始めよう!

あけましておめでとうございます

今年もよろしくお願いします

PCでXOOPSにログインした場合、アカウント情報がちゃんと表示されるけど、モバイルのログインした後にアカウント情報を見ようとすると登録しているメールアドレスしか表示されない。


hyp_commonのファイルを修正する。

xoops_trust_path/class/hyp_common/ktairender/hyp_ktai_render.php



516 // give data-ajax="false"
517 $body = preg_replace_callback('#(<script.+?/script>)|((<(?:a|form)[^>]+?)((?:href|action)=("|\')([^>]+?)\\5)([^>]*?>))#isS', array(& $this, '_check_href_smart'), $body);
518
519 // for Smarty {mailto encode="javascript"}
520 $body = preg_replace_callback('#<script type="text/javascript">eval\((unescape\(\'[%0-9a-f]+\'\))\)</script>#S', array(& $this, '_check_js_email'), $body);
521
522 return $body;
523 }
524
... ...

552 return $match[0];
553 }
554 }
555
556 function _check_js_email($match) {
557 static $num = 0;
558 $id = 'ktai_js_email_' . $num++;
559 return '<span id="'.$id.'">(Email hidden)</span><script type="text/javascript">jQuery(\'#'.$id.'\').html('.$match[1].'.replace(/document\.write\(\'(.+)\'\);/,"$1"));</script>';
560 }
561
562 // HTML を携帯端末用にシェイプアップする



参考サイト

https://github.com/nao-pon/HypCommon/commit/2ae4d0fffe8e390c180225facf67271524fb7ec7

UserInfoProtector.class.phpを移動する事で解決。


html/preload/UserInfoProtector.class.php

              ↓

html/preload/disabled/UserInfoProtector.class.php