Make bridge app more correct: only activated when GET-ing pages which can have comments and don't get confused by other apps POSTs. Simplify code along the way.

This commit is contained in:
Uriel 2009-02-26 11:42:20 +01:00
parent b9d64d6bd2
commit b00107e3b8
2 changed files with 16 additions and 14 deletions

View file

@ -1,12 +1,10 @@
<hr />
% notices_handler
% # XXX should post to bridge_post or similar
<form action="" method="post">
<textarea name="comment_text" id="comment_text" cols="80" rows="16">%($"saved_comment_text%)</textarea>
<br />
<input type="hidden" name="document_uri" value="%($req_path%)" />
<input type="submit" name="post_comment" value="Post a comment" />
<input type="submit" name="bridge_post" value="Post a comment" />
% if(~ $#logged_user 0 && ! ~ $#allow_new_user_comments 0) {
<label>New user name: