Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug при обработке ссылок закодированных base 64 #30

Closed
99kpv opened this issue May 2, 2023 · 1 comment
Assignees
Labels
bug (ошибка) Something isn't working

Comments

@99kpv
Copy link

99kpv commented May 2, 2023

С поддержкой admitad смотрели данную проблему

Вот их ответ

При размещении ссылок веб-мастер кодирует их в base 64, далее скорее всего отрабатывает JS скрип который приобразует при клике на ссылку преобразует ее.
При приоразовании ссылки например: aHR0cHM6Ly9hZmxpbmsucnUvZy9rM2RmdmV2d2l0ZmE3Y2U3YTA0NTY1YTM3Y2EwM2QvP2k9MTAmIzAzODt1bHA9aHR0cHM6Ly9nYi5ydS9nZWVrX3VuaXZlcnNpdHkvZGV2ZWxvcGVyL3Byb2dyYW1tZXIvcHl0aG9u
Получаем:
https://aflink.ru/g/k3dfvevwitfa7ce7a04565a37ca03d/?i=10&ulp=https://gb.ru/geek_university/developer/programmer/python

Оригинальная ссылка выглядит вот так:
https://aflink.ru/g/k3dfvevwitfa7ce7a04565a37ca03d/?i=10&ulp=https://gb.ru/geek_university/developer/programmer/python

@mihdan mihdan self-assigned this May 2, 2023
@mihdan mihdan added the bug (ошибка) Something isn't working label May 2, 2023
@mihdan
Copy link
Owner

mihdan commented May 2, 2023

По описанию надо на фронте делать аналог html_entity_decode.

Оставлю тут одно из решений

function decodeHTMLEntities(text) {
  var textArea = document.createElement('textarea');
  textArea.innerHTML = text;
  return textArea.value;
}

@mihdan mihdan closed this as completed in a10b25f May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (ошибка) Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants