Skip to content

Commit

Permalink
allow nameless program
Browse files Browse the repository at this point in the history
  • Loading branch information
mapmeld committed Mar 24, 2013
1 parent a13bdd2 commit 089a2d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.js
Expand Up @@ -740,7 +740,7 @@ var init = exports.init = function (config) {
// search for dangerous DOM access or annoying alerts before storing any code
var codescan = replaceAll(replaceAll((req.body.code).toLowerCase()," ",""),"\n","");
if((codescan.indexOf("document") > -1) || (codescan.indexOf("script") > -1) || (codescan.indexOf("eval") > -1) || (codescan.indexOf("parent") > -1) || (codescan.indexOf("$") > -1) || (codescan.indexOf("jquery") > -1) || (codescan.indexOf("alert") > -1)){
res.redirect('/kansas')
res.redirect('/kansas');
}

// acceptable document - update file
Expand Down
2 changes: 1 addition & 1 deletion views/kansasedit.jade
Expand Up @@ -16,7 +16,7 @@ head
font-family: arial;
}
body(onload="init()")
if program.name == ""
if program.name == "" && program.code == ""
span#codetitle(style="font-family:courier;") My Procedure
input(type="button", value="Refresh", onclick="window.location.reload()")
br
Expand Down

0 comments on commit 089a2d2

Please sign in to comment.