Forráskód Böngészése

AMBARI-25494: Ambari - Unsafe third-party link (target="_blank") (#3538)

Yu Hou 3 éve
szülő
commit
63ba039104

+ 2 - 2
ambari-web/app/assets/index.html

@@ -45,8 +45,8 @@
     </div>
     <footer>
         <div class="container footer-links">
-            <a data-qa="license-link" href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Licensed under the Apache License, Version 2.0</a>.<br>
-            <a data-qa="third-party-link" href="/licenses/NOTICE.txt" target="_blank">See third-party tools/resources that Ambari uses and their respective authors</a>
+            <a data-qa="license-link" href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank" rel="noopener noreferrer">Licensed under the Apache License, Version 2.0</a>.<br>
+            <a data-qa="third-party-link" href="/licenses/NOTICE.txt" target="_blank" rel="noopener noreferrer">See third-party tools/resources that Ambari uses and their respective authors</a>
          </div>
     </footer>
 </body>

+ 3 - 3
ambari-web/app/templates/common/about.hbs

@@ -27,8 +27,8 @@
       {{view.ambariVersion}}
       <br />
       <br />
-      <a href="http://ambari.apache.org/" target="_blank">{{t app.aboutAmbari.getInvolved}}</a>
+      <a href="http://ambari.apache.org/" target="_blank" rel="noopener noreferrer">{{t app.aboutAmbari.getInvolved}}</a>
       <br />
-      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">{{t app.aboutAmbari.licensed}}</a>
+      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank" rel="noopener noreferrer">{{t app.aboutAmbari.licensed}}</a>
   </div>
-</div>
+</div>

+ 2 - 2
ambari-web/app/templates/main/service/services/hive.hbs

@@ -51,9 +51,9 @@
       <div class="row">
         <div class="col-md-6 summary-label" style="margin-top: 0px;">{{link.label}}</div>
         <div class="col-md-6 summary-value">
-          <a href="#" target="_blank" {{action goToView link.viewInstance target="controller"}}>{{t app.goToView}}</a>
+          <a href="#" target="_blank" rel="noopener noreferrer" {{action goToView link.viewInstance target="controller"}}>{{t app.goToView}}</a>
         </div>
       </div>
     {{/each}}
   </div>
-</div>
+</div>

+ 2 - 2
ambari-web/app/templates/main/service/widgets/create/step1.hbs

@@ -31,7 +31,7 @@
               <div class="row">
                 <div class="col-md-4">
                   <div class="icon">
-                    <a class="widget-icon-image" target="_blank"><img {{bindAttr src="option.iconPath"}}></a>
+                    <a class="widget-icon-image" target="_blank" rel="noopener noreferrer"><img {{bindAttr src="option.iconPath"}}></a>
                   </div>
                 </div>
                 <div class="label-description col-md-8">
@@ -45,4 +45,4 @@
       </div>
     </div>
   </div>
-</div>
+</div>