Skip to content
Advertisement

PHP json_decode due to json element

My code

JavaScript

output

JavaScript

The issue is in the message key value, I tried to use php stripslashes but doesn’t work

JavaScript

Any help?

Advertisement

Answer

Looks like someone tried to “intelligently” hexencode payload to survive processing steps with unclean coding… It usually is wise to fix the actual issue, so the code creating such payload instead of trying to cure a symptom. There are however situations where you are unable to do so. Which is when you need to start getting dirty hands:

JavaScript

The output is:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement