]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7545 limit the input max length when bulk change the project key
authorStas Vilchik <vilchiks@gmail.com>
Fri, 13 May 2016 15:17:46 +0000 (17:17 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 13 May 2016 15:17:53 +0000 (17:17 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/views/project/key.html.erb

index 541918c5f1533a98e5e287ca217d09335a6bff3b..0ae01cfeea0c904e32d6ce74f8c8c36292d70124 100644 (file)
@@ -17,7 +17,7 @@
     <h1 class="page-title"><%= message('update_key.page') -%></h1>
     <p class="page-description"><%= message('update_key.page.description') -%></p>
   </header>
-  
+
   <% if has_modules %>
     <h2><%= message('update_key.bulk_update') -%></h2>
     <br/>
       <table>
         <tr>
           <td style="padding-right: 20px"><%= message('update_key.replace') -%>:</td>
-          <td><input type="text" value="" name="string_to_replace" id="string_to_replace" size="40"></td>
+          <td><input type="text" value="" name="string_to_replace" id="string_to_replace" size="40" maxlength="400"></td>
           <td class="form-val-note" style="padding-left: 10px;"><%= message('update_key.replace_example') -%></td>
         </tr>
         <tr>
           <td style="padding-right: 20px"><%= message('update_key.by') -%>:</td>
-          <td><input type="text" value="" name="replacement_string" id="replacement_string" size="40"></td>
+          <td><input type="text" value="" name="replacement_string" id="replacement_string" size="40" maxlength="400"></td>
           <td class="form-val-note" style="padding-left: 10px;"><%= message('update_key.by_example') -%></td>
         </tr>
         <tr>