Skip to content

Commit 1319175

Browse files
author
Brent Cook
committed
Land rapid7#9102, Fix nil bug in setting PromptChar without Prompt
2 parents e941677 + 8e5deac commit 1319175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/ui/console/driver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def on_variable_set(glob, var, val)
593593
when "prompt"
594594
update_prompt(val, framework.datastore['PromptChar'] || DefaultPromptChar, true)
595595
when "promptchar"
596-
update_prompt(framework.datastore['Prompt'], val, true)
596+
update_prompt(framework.datastore['Prompt'] || DefaultPrompt, val, true)
597597
end
598598
end
599599

0 commit comments

Comments
 (0)