Skip to content

Commit 5c31586

Browse files
author
HD Moore
committed
Switch to the correct exception class
1 parent 71eab7a commit 5c31586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/encoders/php/base64.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def encode_block(state, buf)
2727
# Have to have these for the decoder stub, so if they're not available,
2828
# there's nothing we can do here.
2929
["(",")",".","_","c","h","r","e","v","a","l","b","s","6","4","d","o"].each do |c|
30-
raise EncodeError if state.badchars.include?(c)
30+
raise BadcharError if state.badchars.include?(c)
3131
end
3232

3333
# PHP escapes quotes by default with magic_quotes_gpc, so we use some

0 commit comments

Comments
 (0)