Permalink
Browse files

wiki.js no longer allows writes to Sample_Project -- a half-hearted m…

…easure to stop vandalism :)
  • Loading branch information...
1 parent 3a89c1b commit 2c9ac5745694a895a90c4b313f48c098fc464d79 @alexwarth committed Aug 26, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 wiki.js
View
@@ -11,6 +11,8 @@ function readFile(name) {
}
function writeFile(name, text) {
+ if (name == "Sample_Project")
+ return;
var ok = true
new Ajax.Request("projects/" + name + ".txt", {
method: "put",

0 comments on commit 2c9ac57

Please sign in to comment.