From de9deef52b225d1010656a09fe30911304636e82 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 23:24:40 +0000 Subject: [PATCH] Fix British spelling: recognised -> recognized --- python/ql/lib/semmle/python/frameworks/PEP249.qll | 8 ++++---- .../2026-05-21-pep249-class-wrapper-connections.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/ql/lib/semmle/python/frameworks/PEP249.qll b/python/ql/lib/semmle/python/frameworks/PEP249.qll index c2a365d011e..1dcaa417318 100644 --- a/python/ql/lib/semmle/python/frameworks/PEP249.qll +++ b/python/ql/lib/semmle/python/frameworks/PEP249.qll @@ -232,13 +232,13 @@ module PEP249 { * A read of a connection-holding attribute within a method of a class whose * `__init__` stores a PEP 249 connection in that attribute. * - * This recognises patterns such as: + * This recognizes patterns such as: * ```python * class Wrapper: * def __init__(self): * self._conn = dbapi.connect(...) * def get_connection(self): - * return self._conn # <-- recognised as a connection source + * return self._conn # <-- recognized as a connection source * ``` * Because the `AttrRead` node for `self._conn` inside `get_connection` is * also the `ExtractedReturnNode` for that statement, the existing TypeTracker @@ -262,13 +262,13 @@ module PEP249 { * An attribute access on a constructor-call result that directly reads the * connection-holding attribute. * - * This recognises patterns such as: + * This recognizes patterns such as: * ```python * class Wrapper: * def __init__(self): * self._conn = dbapi.connect(...) * - * conn = Wrapper()._conn # <-- recognised as a connection source + * conn = Wrapper()._conn # <-- recognized as a connection source * ``` */ private class ConnectionConstructorAttributeRead extends InstanceSource, DataFlow::AttrRead { diff --git a/python/ql/src/change-notes/2026-05-21-pep249-class-wrapper-connections.md b/python/ql/src/change-notes/2026-05-21-pep249-class-wrapper-connections.md index 3e6288abfb0..9d87a3ab79c 100644 --- a/python/ql/src/change-notes/2026-05-21-pep249-class-wrapper-connections.md +++ b/python/ql/src/change-notes/2026-05-21-pep249-class-wrapper-connections.md @@ -1,4 +1,4 @@ --- category: minorAnalysis --- -* Improved detection of SQL injection and other PEP 249 database-related vulnerabilities when a database connection is stored in a class instance attribute and accessed through a getter method or direct attribute read. For example, patterns like `self._conn = dbapi.connect(...)` in `__init__` followed by `return self._conn` in a getter method, or `MyClass()._conn`, are now correctly recognised as PEP 249 connection sources. +* Improved detection of SQL injection and other PEP 249 database-related vulnerabilities when a database connection is stored in a class instance attribute and accessed through a getter method or direct attribute read. For example, patterns like `self._conn = dbapi.connect(...)` in `__init__` followed by `return self._conn` in a getter method, or `MyClass()._conn`, are now correctly recognized as PEP 249 connection sources.