mingwatrading Posted January 12, 2011 Share Posted January 12, 2011 This post only describes how to modify USU5 PRO to accept Chinese characters in the URI. If you have any other problems when using USU5 or USU5 PRO, please go to following topic. ultimate-seo-urls-5-by-fwr-media File - /catalog/includes/modules/ultimate_seo_urls5/main/validator.php Find: Usu_Main::i()->setVar( 'request_compare_in', remove_session_id( htmlspecialchars_decode( Usu_Main::i()->getVar( 'original_request_uri' ) ) ) ); Replace: Usu_Main::i()->setVar( 'request_compare_in', remove_session_id( htmlspecialchars_decode( urldecode( Usu_Main::i()->getVar( 'original_request_uri' ) ) ) ) ); Root Cause: In Usu_Validator::validate() function, it will compare the 'incoming seo uri' and 'new seo uri', it will fail to go to desired page if thry are different. However, the encoded 'incoming seo uri' always different to decoded 'new seo uri' when URLs has Chinese. To solve this problem, you could simply add urldecode function when setting 'incoming seo uri'. Credits: Robert Fisher - FWR Media Thanks to Rob for kindly help multimixer 1 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.