Fix alert message to match style guide

This commit is contained in:
Owen Mansel-Chan
2023-02-17 15:15:19 +00:00
parent cf89b00f47
commit 9ac0c57a3e
2 changed files with 3 additions and 5 deletions

View File

@@ -28,9 +28,7 @@ abstract class Dependency extends Locatable {
*/
abstract predicate relevantForFile(File file);
/**
* An import of this dependency.
*/
/** Gets an import of this dependency. */
ImportSpec getAnImport() {
result.getPath().regexpMatch("\\Q" + this.getDepPath() + "\\E(/.*)?") and
this.relevantForFile(result.getFile())

View File

@@ -24,5 +24,5 @@ where
// this excludes flow from safe parts of request URLs, for example the full URL when the
// doing a redirect from `http://<path>` to `https://<path>`
not scfg.hasFlow(_, sink.getNode())
select sink.getNode(), source, sink, "Untrusted URL redirection depends on a $@.", source.getNode(),
"user-provided value"
select sink.getNode(), source, sink, "This path to an untrusted URL redirection depends on a $@.",
source.getNode(), "user-provided value"