mirror of
https://github.com/scr34m/php-malware-scanner.git
synced 2026-06-16 12:30:35 +00:00
this is not a bug... just fixing a bad bug fix
this is not a bug... just fixing a bad bug fix. there is no off by 1 error after all.
This commit is contained in:
2
b64p.py
2
b64p.py
@@ -59,7 +59,7 @@ def trimR(input, offset):
|
|||||||
if (offset == 0):
|
if (offset == 0):
|
||||||
return input
|
return input
|
||||||
right_cut = offset_2_chars(offset)
|
right_cut = offset_2_chars(offset)
|
||||||
return input[:-right_cut-1]
|
return input[:-right_cut]
|
||||||
|
|
||||||
def encode(input):
|
def encode(input):
|
||||||
e1 = b64encode(input)
|
e1 = b64encode(input)
|
||||||
|
|||||||
Reference in New Issue
Block a user