Update of /cvsroot/sandweb/sandweb/templates
In directory usw-pr-cvs1:/tmp/cvs-serv27826/templates
Modified Files:
edit_file.html view_file.html
Log Message:
* removed "edit" button from view_file page if file is non-text, it's
useless and could easily cause stupid user-induced problems
* view_file now uses POST form to send file to edit_file, and edit_file
uses POST to save it. This way we don't get "URI too long" errors from
Apache ( and other web servers too, I'd imagine ).
Index: edit_file.html
===================================================================
RCS file: /cvsroot/sandweb/sandweb/templates/edit_file.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -U2 -r1.9 -r1.10
--- edit_file.html 2002/01/07 07:17:35 1.9
+++ edit_file.html 2002/01/19 22:38:49 1.10
@@ -6,5 +6,5 @@
Current filename : <TMPL_VAR NAME=FILENAME>
<br />
- <form submit="<TMPL_VAR NAME=PROGNAME>">
+ <form submit="<TMPL_VAR NAME=PROGNAME>" method="POST">
<input name="action" value="file" type="hidden" />
<input name="file_command" value="edit" type="hidden" />
Index: view_file.html
===================================================================
RCS file: /cvsroot/sandweb/sandweb/templates/view_file.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -U2 -r1.15 -r1.16
--- view_file.html 2002/01/07 07:17:35 1.15
+++ view_file.html 2002/01/19 22:38:49 1.16
@@ -4,11 +4,11 @@
Current filename : <TMPL_VAR NAME=FILENAME>
<br />
- <form submit="<TMPL_VAR NAME=PROGNAME>">
+ <form submit="<TMPL_VAR NAME=PROGNAME>" method="POST">
<input type="hidden" name="action" value="file" />
<a href="<TMPL_VAR NAME=PROGNAME>/<TMPL_VAR NAME=FILENAME>?action=file&file_command=download&location=<TMPL_VAR NAME=LOCATION>&filename=<TMPL_VAR NAME=FILENAME>">download</a>
- <input type="submit" name="file_command" value="upload" />
- <input type="submit" name="file_command" value="edit" />
- <input type="hidden" name="location" value="<TMPL_VAR NAME=LOCATION>" />
<input type="hidden" name="filename" value="<TMPL_VAR NAME=FILENAME>" />
+ <input type="hidden" name="location" value="<TMPL_VAR NAME=LOCATION>" />
+ <input type="submit" name="file_command" value="upload" />
+ <TMPL_VAR NAME=EDIT><!-- <input type="submit" name="file_command" value="edit" /> -->
<TMPL_VAR NAME=ERROR>
<br>
|