aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-08-11 10:26:03 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-08-11 10:26:03 +0200
commitaad044d479861695a86b15ed0d1d668d690ab673 (patch)
tree6dd05ece611088f90aacb071c5ca04aec34e33c4 /server/sonar-web/src
parent8d2edf8da99fddb306f95ed377315d155c4135f2 (diff)
downloadsonarqube-aad044d479861695a86b15ed0d1d668d690ab673.tar.gz
sonarqube-aad044d479861695a86b15ed0d1d668d690ab673.zip
SONAR-7920 limit max length of link name and url
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/js/apps/project-admin/links/views/CreationModalTemplate.hbs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/project-admin/links/views/CreationModalTemplate.hbs b/server/sonar-web/src/main/js/apps/project-admin/links/views/CreationModalTemplate.hbs
index 7405f30d1b4..6d7f25084b5 100644
--- a/server/sonar-web/src/main/js/apps/project-admin/links/views/CreationModalTemplate.hbs
+++ b/server/sonar-web/src/main/js/apps/project-admin/links/views/CreationModalTemplate.hbs
@@ -7,12 +7,12 @@
<div class="modal-field">
<label for="create-link-name">{{t 'project_links.name'}}<em class="mandatory">*</em></label>
- <input id="create-link-name" name="name" type="text" required>
+ <input id="create-link-name" name="name" type="text" maxlength="128" required>
</div>
<div class="modal-field">
<label for="create-link-url">{{t 'project_links.url'}}<em class="mandatory">*</em></label>
- <input id="create-link-url" name="url" type="text" required>
+ <input id="create-link-url" name="url" type="text" maxlength="2048" required>
</div>
</div>
<div class="modal-foot">