Encoding Issue?

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
marz
New php-forum User
New php-forum User
Posts: 2
Joined: Mon Dec 11, 2017 3:00 pm

Mon Dec 11, 2017 3:44 pm

This is some sort of encoding issue, but I really don't know how to solve it - I thought maybe someone here could help. I have a URL that needs to be echoed as a link in my PHP script. Part of the URL contains the string: "1a9571fe1b674481a2b04e2422a8d5107656467491445368579". However, when the URL is rendered (or if you simply "echo" the string to the screen), PHP returns "1a9571fe1b674481a2b04e2422a8dXXXXXXXXXXXX1445368579". Basically, it is substituting the portion "8d510765646749" with the 'X''s. I've tried escaping the string, which does not work. Can someone suggest a solution? Thanks much!

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 686
Joined: Mon Feb 22, 2016 5:52 pm

Mon Dec 11, 2017 4:20 pm

Where's the code you used?

marz
New php-forum User
New php-forum User
Posts: 2
Joined: Mon Dec 11, 2017 3:00 pm

Mon Dec 11, 2017 7:05 pm

I have a feeling that is odd behaviour is being caused by our WAF. I'll do some additional research and close the thread if so. Thanks!

Post Reply