wp-cassify issue with php 8 – white_list bugged
Hello,
I have the same problem than others in this forum when upgrading from php 7 to php 8 with wp-cassify 2.3.1 : wp_cassify_is_in_while_list returns always true and there is no more redirection to CAS Authentication after upgrading php to >= 8.
By the way, note the typo in while_list (means white_list).
The issue comes from the line 1144 :
if ( strrpos( $url, $white_url, -strlen( $url ) ) !== false ) {
The behavior of strrpos has changed from 7 to 8 php version cf
https://www.php.net/manual/en/function.strrpos.php
I don’t use “white list” option of wp-cassify but this should be buggy even with php 7.
I suggest to modify the line 1144 like this
if ( strlen($white_url)>0 && strrpos( $url, $white_url, strlen( site_url() ) ) !== false ) {
Thnak you for this great plugin !
Vincent B.
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس