Gatses
Chevereto Member
Hello there!
I have some problems with API.
When I try to use it I always geting exception
Invalid base64 string.
with error code 120
I checked code and found this..
Well, i think function !G\timing_sage_compare just comparing 1st and 2nd arguments.. (I didn't see this function)
And i just tried to test this situation:
And I've got this:
I think 'aaaaa' not equival 'aaaa'..
Am i right? Is it bug? Maybe it caused file encoding problems? At my PC I've got file:
user@pc:~$ file -bi /home/user/chevereto/app/routes/route.api.php
text/x-php; charset=us-ascii
Sorry for my English once again
I have some problems with API.
When I try to use it I always geting exception
Invalid base64 string.
with error code 120
I checked code and found this..
Well, i think function !G\timing_sage_compare just comparing 1st and 2nd arguments.. (I didn't see this function)
And i just tried to test this situation:
PHP:
$a = 'aaaaa';
$a1 = base64_decode($a);
$a2 = base64_encode($a1);
print($a);
print('<br/>');
print($a1);
print('<br/>');
print($a2);
And I've got this:
Code:
aaaaa
i¦љ
aaaa
I think 'aaaaa' not equival 'aaaa'..
Am i right? Is it bug? Maybe it caused file encoding problems? At my PC I've got file:
user@pc:~$ file -bi /home/user/chevereto/app/routes/route.api.php
text/x-php; charset=us-ascii
Sorry for my English once again