summaryrefslogtreecommitdiff
path: root/ws2a
diff options
context:
space:
mode:
Diffstat (limited to 'ws2a')
-rw-r--r--ws2a/bugcomment.c5
-rw-r--r--ws2a/bugs.html15
-rw-r--r--ws2a/newbug.c0
3 files changed, 20 insertions, 0 deletions
diff --git a/ws2a/bugcomment.c b/ws2a/bugcomment.c
index afd0e6c..eeba8fe 100644
--- a/ws2a/bugcomment.c
+++ b/ws2a/bugcomment.c
@@ -27,6 +27,11 @@ char* replaceHTML(char* str){
nstr[nstrp] = (char)hex;
nstrp++;
strp+=3;
+ }else if(str[strp] == '\n'){
+ nstr[nstrp] = '\\';
+ nstr[nstrp+1] = 'n';
+ nstrp+=2;
+ strp++;
}else{
nstr[nstrp] = str[strp];
nstrp++;
diff --git a/ws2a/bugs.html b/ws2a/bugs.html
index 5c27898..7833614 100644
--- a/ws2a/bugs.html
+++ b/ws2a/bugs.html
@@ -57,6 +57,21 @@
</table>
</div>
+ <div class="container">
+ <form class="form-signin" action="/cgi-bin/newbug.cgi">
+ <h2 class="form-signin-heading">Create a bug</h2>
+ <label for="inputName" class="sr-only">Name</label>
+ <input id="inputName" name="name" class="form-control" placeholder="Screen Name" required="" autofocus="" type="text">
+ <label for="inputID" class="sr-only">Identifier</label>
+ <input id="inputID" name="id" class="form-control" placeholder="Identifier" required="" type="password">
+ <textarea name="comment" rows="5" cols="50"></textarea>
+ <div id="captcha"></div>
+ <input id="solvecaptcha" name="captcha" class="form-control" placeholder="captcha" type="text">
+ <input type="hidden" name="bugid" id=bgid>
+ <button class="btn btn-lg btn-primary btn-block" type="Post">Post</button>
+ </form>
+ </div>
+
<footer class="footer">
<p>Contact the admin at <a href="mailto:apickx@cogarr.org">Apickx@cogarr.org</a></p>
</footer>
diff --git a/ws2a/newbug.c b/ws2a/newbug.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ws2a/newbug.c