Jump to content

about Tools:getValue() function and $_GET


langziyang
 Share

Recommended Posts

i dev some module,this module will return some data,i need use the Tools:getValue() or $_GET。

 

this is the return url:http://jinber.com/module/alipay/return_page?buyer_email=langziyang%40yeah.net&notify_id=

RqPnCoPT3K9%252Fvwbh3InTu8fUygLUM2lmAg2c8aM65VXJ9r8AZmYdq5AFyFvyzzGCif2L

 

so i use Tools::getVaule('notify_id') or $_GET['notify_id'] get the notify_id。

the echo this value,the display like this:

RqPnCoPT3K9%2Fvwbh3InTu8fUygLUM2lmAg2c8aM65VXJ9r8AZmYdq5AFyFvyzzGCif2L

 

 

the string"52" is lost,why?

Share this post


Link to post
Share on other sites

Actually the string "25" is lost.

 

"%25" represents url encode of percent sign (%). So the string gets translated from ...K9%252Fvwbh... to ...K9%2Fvwbh...

 

Check what is the correct value of notify_id that should be returned. Maybe it is already encoded...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More