others/Makefile.am compiled libinjection with
-D LIBINJECTION_VERSION="${LIBINJECTION_VERSION}", but that make variable
was always empty: configure.ac defines LIBINJECTION_VERSION only as an m4
macro (used in the configure summary), and the AC_SUBST of it never
received a value. libinjection 4.x defines LIBINJECTION_VERSION itself
inside #ifndef, so the empty definition won and libinjection_version()
returned "" in every autotools build.
Drop the -D and the empty AC_SUBST, so libinjection uses its own version
string, kept in sync with its release by release-please. The configure
summary still prints the version from git describe. The Windows CMake
build passes its own value and is not changed.
AI disclosure: made with help of Claude Code, Opus 5.5
what
Updated
libinjectionsubmodule to 4.0.2.why
It's been released with a SQLi detection fix: MySQL charset introducers that were missing from the keyword table (
_utf8mb4,_utf16,_gb18030and others, and_ucs2, which was misspelled as_usc2) are now recognized (libinjection/libinjection#101).Also fixes the version the bundled library reports.
others/Makefile.amcompiled libinjection with-D LIBINJECTION_VERSION="${LIBINJECTION_VERSION}", but that make variable was always empty (configure.acdefines it only as an m4 macro for the configure summary). libinjection 4.x definesLIBINJECTION_VERSIONinside#ifndef, solibinjection_version()returned""in every autotools build. The-Dand the emptyAC_SUBSTare removed;libinjection_version()now returns4.0.2, and the configure summary still printsv4.0.2. The Windows CMake build sets its own value and is unchanged.references
AI disclosure
Made with help of Claude Code (Opus 5.5)
Summary by CodeRabbit