afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-05-02 04:05 pm

[dw-free] Fix the username length on admin pages

[commit: http://hg.dwscoalition.org/dw-free/rev/7cb701e14eb1]

http://bugs.dwscoalition.org/show_bug.cgi?id=978

Fix username length on admin pages.

Patch by [personal profile] kareila.

Files modified:
  • htdocs/admin/capedit.bml
  • htdocs/admin/dupkiller.bml
  • htdocs/admin/priv/index.bml
  • htdocs/admin/recent_comments.bml
  • htdocs/admin/spamreports.bml
  • htdocs/admin/statushistory.bml
  • htdocs/admin/styleinfo.bml
  • htdocs/admin/userlog.bml
--------------------------------------------------------------------------------
diff -r 0d02b33c653b -r 7cb701e14eb1 htdocs/admin/capedit.bml
--- a/htdocs/admin/capedit.bml	Sat May 02 07:06:53 2009 +0000
+++ b/htdocs/admin/capedit.bml	Sat May 02 16:03:43 2009 +0000
@@ -24,7 +24,7 @@
  {
      $ret .= "<h1>capability class management</h1>\n";
      $ret .= "<form method='get'>";
-     $ret .= "Modify capabilities for user: <input name='user' size='15'> <input type='submit' value=\"Load\">";
+     $ret .= "Modify capabilities for user: <input name='user' maxlength='25' size='25'> <input type='submit' value=\"Load\">";
      $ret .= "</form>";
 
      return $ret;
diff -r 0d02b33c653b -r 7cb701e14eb1 htdocs/admin/dupkiller.bml
--- a/htdocs/admin/dupkiller.bml	Sat May 02 07:06:53 2009 +0000
+++ b/htdocs/admin/dupkiller.bml	Sat May 02 16:03:43 2009 +0000
@@ -18,7 +18,7 @@
 	$ret .= "<h1>duplicate entry killer</h1>\n";
 	$ret .= "<form method='post'>";
         $ret .= LJ::form_auth();
-	$ret .= "Kill duplicates for user: <input name='user' size='15'> <input type='submit' value=\"Kill\">";
+	$ret .= "Kill duplicates for user: <input name='user' maxlength='25' size='25'> <input type='submit' value=\"Kill\">";
 	$ret .= "</form>";
 	return $ret;
     }
diff -r 0d02b33c653b -r 7cb701e14eb1 htdocs/admin/priv/index.bml
--- a/htdocs/admin/priv/index.bml	Sat May 02 07:06:53 2009 +0000
+++ b/htdocs/admin/priv/index.bml	Sat May 02 16:03:43 2009 +0000
@@ -53,7 +53,7 @@
  {
      $ret .= "<h1>Privilege Management</h1>\n";
      $ret .= "<form method='get' action='index.bml'>";
-     $ret .= "<p>View all privileges of user <input name='user' size='15' /> <input type='submit' value=\"Load\" /></p></form>";
+     $ret .= "<p>View all privileges of user <input name='user' size='25' maxlength='25' /> <input type='submit' value=\"Load\" /></p></form>";
 
      $ret .= "<p>Or, show all users with privilege:</p><dl>";
      foreach my $priv (@privs) {
@@ -307,7 +307,7 @@
 
      if ($showgrant) {
          $ret .= "<p>Grant <b>$privname</b> privilege to:<ul>";
-         $ret .= "User: <input name='grantuser' size='15' maxlength='25' /> ";
+         $ret .= "User: <input name='grantuser' size='25' maxlength='25' /> ";
          $ret .= "Arg: <input name='arg' size='10' maxlength='40' value='$FORM{'viewarg'}'/></ul>\n";
      } else {
          $ret .= "<p><i>(you don't have access to grant this privilege to other users)</i></p>\n";
diff -r 0d02b33c653b -r 7cb701e14eb1 htdocs/admin/recent_comments.bml
--- a/htdocs/admin/recent_comments.bml	Sat May 02 07:06:53 2009 +0000
+++ b/htdocs/admin/recent_comments.bml	Sat May 02 16:03:43 2009 +0000
@@ -23,7 +23,7 @@
     }
     unless ($u) {
         return "<form method='GET'>Username or (#userid) to view comments of: ".
-            "<input name='user' size='15' /><input type='submit' value='Load' /></form>";
+            "<input name='user' maxlength='25' size='25' /><input type='submit' value='Load' /></form>";
     }
     $user = $u->{'user'};
     $ret .= "<a href='recent_comments.bml'>&lt;&lt;</a> <b>Recent comments of " . LJ::ljuser($u) . "</b> (\#$u->{userid})<br />\n";
diff -r 0d02b33c653b -r 7cb701e14eb1 htdocs/admin/spamreports.bml
--- a/htdocs/admin/spamreports.bml	Sat May 02 07:06:53 2009 +0000
+++ b/htdocs/admin/spamreports.bml	Sat May 02 16:03:43 2009 +0000
@@ -262,7 +262,7 @@
         }
         $body .= qq{<li><form method="GET" action="spamreports.bml" style="display: inline; margin: 0;">
             <label for="repu">Reports for user:
-                <input type="text" name="what" size="15" maxlength="25" id="repu" />
+                <input type="text" name="what" size="25" maxlength="25" id="repu" />
                 <input type="hidden" name="by" value="poster" />
                 <input type="hidden" name="mode" value="view" />
             </label></form></li>
diff -r 0d02b33c653b -r 7cb701e14eb1 htdocs/admin/statushistory.bml
--- a/htdocs/admin/statushistory.bml	Sat May 02 07:06:53 2009 +0000
+++ b/htdocs/admin/statushistory.bml	Sat May 02 16:03:43 2009 +0000
@@ -22,8 +22,8 @@
     $ret .= "Fill in at least one field below:";
     $ret .= "<form method='post' action='statushistory.bml'>\n";
     $ret .= LJ::html_hidden('orderby', $FORM{'orderby'}, 'flow', $FORM{'flow'}) . "\n";
-    $ret .= "User: " . LJ::html_text({ 'name' => 'user', 'size' => '15', 'maxlength' => '25' }) . "\n";
-    $ret .= "Admin: " . LJ::html_text({ 'name' => 'admin', 'size' => '15', 'maxlength' => '25' }) . "\n";
+    $ret .= "User: " . LJ::html_text({ 'name' => 'user', 'size' => '25', 'maxlength' => '25' }) . "\n";
+    $ret .= "Admin: " . LJ::html_text({ 'name' => 'admin', 'size' => '25', 'maxlength' => '25' }) . "\n";
     $ret .= "Type: " . LJ::html_text({ 'name' => 'type', 'size' => '20', 'maxlength' => '20' }) . "\n";
     $ret .= LJ::html_submit('query_submit', 'Search');
     $ret .= "</form>\n\n";
diff -r 0d02b33c653b -r 7cb701e14eb1 htdocs/admin/styleinfo.bml
--- a/htdocs/admin/styleinfo.bml	Sat May 02 07:06:53 2009 +0000
+++ b/htdocs/admin/styleinfo.bml	Sat May 02 16:03:43 2009 +0000
@@ -18,7 +18,7 @@ body<=
     my $ret;
     $ret .= "<form method='POST'>";
     $ret .= "View user: ";
-    $ret .= LJ::html_text({name => 'user', maxlength => '25', size => '15', value => $GET{user} || $POST{user}});
+    $ret .= LJ::html_text({name => 'user', maxlength => '25', size => '25', value => $GET{user} || $POST{user}});
     $ret .= LJ::html_submit(value => "View");
     $ret .= "</form>";
     $ret .= "<?hr?>";
diff -r 0d02b33c653b -r 7cb701e14eb1 htdocs/admin/userlog.bml
--- a/htdocs/admin/userlog.bml	Sat May 02 07:06:53 2009 +0000
+++ b/htdocs/admin/userlog.bml	Sat May 02 16:03:43 2009 +0000
@@ -41,7 +41,7 @@ body<=
 
     my $ret = <<FORM;
 <form method='post' action='userlog.bml'>
-Username: <input type='text' name='user' value='$user' maxlength='25' size='15' /> <input type='submit' value='View' />
+Username: <input type='text' name='user' value='$user' maxlength='25' size='25' /> <input type='submit' value='View' />
 </form>
 FORM
     return $ret unless $user;
--------------------------------------------------------------------------------