Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

mingwatrading

Pioneers
  • Posts

    8
  • Joined

  • Last visited

Reputation Activity

  1. Like
    mingwatrading got a reaction from multimixer in How to modify USU5 PRO to accept Chinese characters in the URI   
    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
×
×
  • Create New...