Jump to content

[addons validation] The use of function base64_encode() is forbidden


bellini13

Recommended Posts

In my situation, I base64 encode a string so the string can be appended to the end of a URL.  Using URL encoding is not desirable here, since I am looking to mask the string from a standard end user, and it also drastically shortens the string value, bypassing GET length limitations.  

 

The string is then base64_decoded within the template and displayed to the end user when the page is rendered.

 

Usually Prestashop will have a Tools function that they want you to use instead, but in this case no alternative is provided.

Link to comment
Share on other sites

  • 2 years later...

Of course, but that's now your initial question. Your initial question was why this function is forbidden, and the most important, what alternative exists?

You can change it because it was your personal development. But, what to do when you receive a base64 encoded string from a third party and you must decoded?? Is there any alternative solution that Prestashop accept??

 

Regards

Link to comment
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
×
×
  • Create New...