osCommerce / oscommerce2

osCommerce Online Merchant v2.x
http://www.oscommerce.com
MIT License
281 stars 222 forks source link

APP and URL #577

Open oitsuki opened 7 years ago

oitsuki commented 7 years ago

It seems there is a bug wiht url when we use an app. I tested it with payment module and a call back url.

The problem seem to come there in OSCOM .

example : %5C = &

  $p = str_replace([
                          "\\", // apps
                          '{', // product attributes
                          '}' // product attributes
                          ], [
                            '%5C',
                            '%7B',
                            '%7D'
                          ], $p);

replace quickly by :

 $p = str_replace([
          "\\", // apps
          '{', // product attributes
          '}' // product attributes
        ], [
          '&',
          '%7B',
          '%7D'
        ], $p);
index.php?order%5Cdesjardins&success&ho  does'nt work, the page is not called
index.php?order&desjardins&success&ho work, page called