File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 1+ # v2.0.2
2+ Устранена ошибка двойного кодирования параметров.
3+
14# v2.0.1
2- Мелкие правки.
5+ Мелкие правки.
36
47# v2.0.0
58- Добавлена поддержка PHP 8.
Original file line number Diff line number Diff line change @@ -259,10 +259,28 @@ private function hitExt(
259259 return $ this ->postRequest (
260260 self ::HOST ,
261261 $ getQuery ,
262- http_build_query ($ postData )
262+ $ this -> buildQueryParams ($ postData )
263263 );
264264 }
265265
266+ /**
267+ * Возвращает строку запроса.
268+ *
269+ * @param Array $params
270+ *
271+ * @return string
272+ */
273+ private function buildQueryParams ($ params )
274+ {
275+ $ queryBits = [];
276+
277+ foreach ($ params as $ key => $ value ) {
278+ $ queryBits [] = $ key . '= ' . $ value ;
279+ }
280+
281+ return (implode ('& ' , $ queryBits ));
282+ }
283+
266284 /**
267285 * Возвращает адрес текущей страницы.
268286 *
You can’t perform that action at this time.
0 commit comments