Repository: catchpoint/WebPageTest (language: php)

Issue:
Custom Waterfall download button needs to be updated to match image source throughout session



Discussion / hints:

Fix patch:
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 0000000000..0a204d283b
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,19 @@
+# Reporting Security Issues 
+We at WebPageTest value the security community and believe that responsible disclosure of security vulnerabilities in our tool is critical to helping ensure the privacy and safety of our users. 
+
+If you believe you have found a security vulnerability in WebPageTest, we encourage you to let us know right away. We will investigate all legitimate reports and do our best to quickly fix the problem. Before reporting though, please review our responsible disclosure policy, and those things that should not be reported. 
+
+Submit your report to [security@catchpoint.com](security@catchpoint.com) (one issue per report) and respond to the report with any updates. Please do not contact employees directly or through other channels about a report. 
+
+Report security bugs in third-party modules to the person or team maintaining the module. 
+
+## Responsible Disclosure Policy
+We ask that: 
+
+- You give us reasonable time to investigate and mitigate an issue you report before making public any information about the report or sharing such information with others. 
+- You do not interact with an individual account (which includes modifying or accessing data from the account) if the account owner has not consented to such actions. 
+- You avoid privacy violations and disruptions to others, including (but not limited to) destruction of data and interruption or degradation of our services. 
+- You do not exploit a security issue you discover for any reason. (This includes demonstrating additional risk, such as attempted compromise of sensitive company data or probing for additional issues). 
+- You do not violate any other applicable laws or regulations. 
+
+Find out more about our [security policy](https://www.catchpoint.com/trust). 
diff --git a/www/customWaterfall.php b/www/customWaterfall.php
index fd7b9d5cce..fda52ef8cd 100644
--- a/www/customWaterfall.php
+++ b/www/customWaterfall.php
@@ -177,6 +177,7 @@ function UpdateWaterfall()
                           '&wait=' + showWait +
                           '&requests=' + requests;
                 $('#waterfallImage').attr("src", src);
+                $('.customwaterfall_download a').attr("href", src);
             };
         </script>
     </body>


Test patch: