| commit | 8f9c5e080d902dc97656fde78899f475c1acd08b | [log] [tgz] |
|---|---|---|
| author | Sebb <sebb@apache.org> | Tue Oct 08 11:37:26 2024 +0100 |
| committer | Sebb <sebb@apache.org> | Tue Oct 08 11:37:26 2024 +0100 |
| tree | 74d30f12c3a6069fce16f0c184ab54cbdd578367 | |
| parent | 69e03d5c9f42a383d1c95a2ee0065f4d0a720722 [diff] |
Show warning for bad URLs
diff --git a/www/roster/views/person/urls.js.rb b/www/roster/views/person/urls.js.rb index d281a58..49ff89e 100644 --- a/www/roster/views/person/urls.js.rb +++ b/www/roster/views/person/urls.js.rb
@@ -36,7 +36,14 @@ end else _ul committer.urls do |url| - _li {_a url, href: url} + if url =~ %r{^https?://} + _li {_a url, href: url} + else + _li.bg_warning do + _ url + _ ' - (invalid: must start with https?://)' + end + end end end end