File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ protected function parseUrl($url)
444
444
445
445
if (isset ($ this ->info ['query ' ])) {
446
446
$ queryString = preg_replace_callback ('/(^|(?<=&))[^=[&]+/ ' , function ($ key ) {
447
- return bin2hex (urldecode ($ key [0 ]));
447
+ return base64_encode (urldecode ($ key [0 ]));
448
448
}, $ this ->info ['query ' ]);
449
449
450
450
parse_str ($ queryString , $ query );
@@ -470,9 +470,9 @@ private static function fixQuery(array $query)
470
470
471
471
foreach ($ query as $ key => $ value ) {
472
472
if (is_array ($ value )) {
473
- $ fixed [hex2bin ($ key )] = self ::fixQuery ($ value );
473
+ $ fixed [base64_decode ($ key )] = self ::fixQuery ($ value );
474
474
} else {
475
- $ fixed [hex2bin ($ key )] = urldecode ($ value );
475
+ $ fixed [base64_decode ($ key )] = urldecode ($ value );
476
476
}
477
477
}
478
478
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ public function testOne()
8
8
'https://nl.movim.eu/?node/blabla.movim.eu/random/1fb06a3cc05c4490bf659c227b39a9aa ' ,
9
9
[
10
10
'title ' => 'Paris Attacks, cat not giving a fuck ' ,
11
+ 'url ' => 'https://nl.movim.eu/?node/blabla.movim.eu/random/1fb06a3cc05c4490bf659c227b39a9aa ' ,
11
12
'description ' => 'Can you find the cat? ' ,
12
13
'image ' => 'http://hugelolcdn.com/i700/361973.jpg ' ,
13
14
]
You can’t perform that action at this time.
0 commit comments