We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ffb0b1 + 656c8fd commit 93ddcebCopy full SHA for 93ddceb
modules/encoders/php/base64.rb
@@ -71,10 +71,6 @@ def encode_block(state, buf)
71
# raw string, so strip it off.
72
b64.gsub!(/[=\n]+/, '')
73
74
- # The first character must not be a non-alpha character or PHP chokes.
75
- i = 0
76
- b64[i] = "chr(#{b64[i]})." while (b64[i].chr =~ %r{[0-9/+]})
77
-
78
# Similarly, when we separate large payloads into chunks to avoid the
79
# 998-byte problem mentioned above, we have to make sure that the first
80
# character of each chunk is an alpha character. This simple algorithm
0 commit comments