[evolvis-commits] r17205: more usability improvements; unbreak upload template, too

mirabilos at evolvis.org mirabilos at evolvis.org
Wed May 4 16:51:37 CEST 2011


Author: mirabilos
Date: 2011-05-04 16:51:37 +0200 (Wed, 04 May 2011)
New Revision: 17205

Modified:
   trunk/gforge_base/evolvisforge/gforge/debian/changelog
   trunk/gforge_base/evolvisforge/gforge/www/tracker/admin/updates.php
   trunk/gforge_base/evolvisforge/gforge/www/tracker/browse.php
Log:
more usability improvements; unbreak upload template, too


Modified: trunk/gforge_base/evolvisforge/gforge/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/debian/changelog	2011-05-04 14:51:35 UTC (rev 17204)
+++ trunk/gforge_base/evolvisforge/gforge/debian/changelog	2011-05-04 14:51:37 UTC (rev 17205)
@@ -11,9 +11,9 @@
   * The minijson encoder is now complete
   * New minijson decoder (also complete)
   * Distinguish Site vs Group (Project) vs Item Admin
-  * Tracker: “Add” instructions can contain newlines
+  * Tracker: “Add” and “Browse” instructions can contain newlines
 
- -- Thorsten Glaser <t.glaser at tarent.de>  Wed, 04 May 2011 14:21:54 +0200
+ -- Thorsten Glaser <t.glaser at tarent.de>  Wed, 04 May 2011 15:24:59 +0200
 
 gforge (4.8.3+evolvis33) unstable; urgency=high
 

Modified: trunk/gforge_base/evolvisforge/gforge/www/tracker/admin/updates.php
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/www/tracker/admin/updates.php	2011-05-04 14:51:35 UTC (rev 17204)
+++ trunk/gforge_base/evolvisforge/gforge/www/tracker/admin/updates.php	2011-05-04 14:51:37 UTC (rev 17205)
@@ -291,8 +291,9 @@
 		} elseif (getStringFromRequest('uploadtemplate')) {
 
 			$input_file = getUploadedFile('input_file');
-			if (!util_check_fileupload($input_file)) {
-				echo ('Invalid filename');
+			if (!util_check_fileupload($input_file['tmp_name'])) {
+				printf('%s: "%s"\n', _('Invalid filename'),
+				    $input_file['tmp_name']);
 				exit;
 			}
 			$size = $input_file['size'];

Modified: trunk/gforge_base/evolvisforge/gforge/www/tracker/browse.php
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/www/tracker/browse.php	2011-05-04 14:51:35 UTC (rev 17204)
+++ trunk/gforge_base/evolvisforge/gforge/www/tracker/browse.php	2011-05-04 14:51:37 UTC (rev 17205)
@@ -433,7 +433,7 @@
  *
  *	Show the free-form text submitted by the project admin
  */
-echo $ath->getBrowseInstructions();
+echo util_pwrap($ath->getBrowseInstructions());
 
 $entries = 0;
 $k = 0;



More information about the evolvis-commits mailing list