M
M
mirexdoors2018-08-06 07:59:55
1C-Bitrix
mirexdoors, 2018-08-06 07:59:55

How to properly escape characters for CFile::MakeFileArray?

Hello!
Please tell me how to properly prepare the url for passing it to CFile::MakeFileArray() if it looks like:
http://user:[email protected]/img.jpg
urlencode() does not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Petr Vasiliev, 2018-08-06
@danial72

The simplest and most hacky way is
$adr = “ http://“.explode( '@',address from )[1];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question