phdesign/NetBash — pull request #1 by phdesign (2012-01-22 21:35:40+00:00)
Title: Add ability to redirect to file

Patch that adds the ability to redirect output to a file that the user is prompted to download.

#### Usage:
help > help.txt
length test string > length.txt

Implemented export as a separate action / url to call that returns type application/octet-stream rather than json.
Javascript recognised redirect symbol '>' and instead of performing an ajax call, sends a form submission to the netbash-export url.

#### Known issues
The problem with this implementation is that if an error occurs the whole page is replaced by the error. This could be overcome by using an iframe for the down, then retrieve any error messages to display back in the console.