File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -108,21 +108,21 @@ def to_s
108
108
qstr << set_encode_uri ( Rex ::Text . rand_text_alphanumeric ( rand ( 32 ) +1 ) )
109
109
end
110
110
end
111
+ if opts . key? ( "vars_get" ) && opts [ 'vars_get' ]
112
+ opts [ 'vars_get' ] . each_pair do |var , val |
113
+ var = var . to_s
111
114
112
- opts [ 'vars_get' ] . each_pair do |var , val |
113
- var = var . to_s
114
-
115
- qstr << '&' if qstr . length > 0
116
- qstr << ( opts [ 'encode_params' ] ? set_encode_uri ( var ) : var )
117
- # support get parameter without value
118
- # Example: uri?parameter
119
- if val
120
- val = val . to_s
121
- qstr << '='
122
- qstr << ( opts [ 'encode_params' ] ? set_encode_uri ( val ) : val )
115
+ qstr << '&' if qstr . length > 0
116
+ qstr << ( opts [ 'encode_params' ] ? set_encode_uri ( var ) : var )
117
+ # support get parameter without value
118
+ # Example: uri?parameter
119
+ if val
120
+ val = val . to_s
121
+ qstr << '='
122
+ qstr << ( opts [ 'encode_params' ] ? set_encode_uri ( val ) : val )
123
+ end
123
124
end
124
125
end
125
-
126
126
if ( opts [ 'pad_post_params' ] )
127
127
1 . upto ( opts [ 'pad_post_params_count' ] . to_i ) do |i |
128
128
rand_var = Rex ::Text . rand_text_alphanumeric ( rand ( 32 ) +1 )
You can’t perform that action at this time.
0 commit comments