Skip to content

Commit b4a69d1

Browse files
fredericDelaportehazzikgithub-actions[bot]
authored
Handle SQL injection vulnerabilities within ObjectToSQLString (#3547)
Co-authored-by: Alex Zaytsev <hazzik@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 93b0d0e commit b4a69d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1105
-78
lines changed

doc/reference/modules/configuration.xml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,20 @@ var session = sessions.OpenSession(conn);
871871
</para>
872872
</entry>
873873
</row>
874+
<row>
875+
<entry>
876+
<literal>escape_backslash_in_strings</literal>
877+
</entry>
878+
<entry>
879+
Indicates if the database needs to have backslash escaped in string literals.
880+
The default value is dialect dependant. That is <literal>false</literal> for
881+
most dialects.
882+
<para>
883+
<emphasis role="strong">eg.</emphasis>
884+
<literal>true</literal> | <literal>false</literal>
885+
</para>
886+
</entry>
887+
</row>
874888
<row>
875889
<entry>
876890
<literal>show_sql</literal>
@@ -1515,12 +1529,6 @@ in the parameter binding.</programlisting>
15151529
<entry><literal>NHibernate.Dialect.PostgreSQLDialect</literal></entry>
15161530
<entry></entry>
15171531
</row>
1518-
<row>
1519-
<entry>PostgreSQL</entry>
1520-
<entry><literal>NHibernate.Dialect.PostgreSQLDialect</literal></entry>
1521-
<entry>
1522-
</entry>
1523-
</row>
15241532
<row>
15251533
<entry>PostgreSQL 8.1</entry>
15261534
<entry><literal>NHibernate.Dialect.PostgreSQL81Dialect</literal></entry>

src/NHibernate.Config.Templates/SapSQLAnywhere.cfg.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ for your own use before compiling tests in Visual Studio.
1515
<property name="connection.connection_string">
1616
UID=DBA;PWD=sql;Server=localhost;DBN=nhibernate;DBF=c:\nhibernate.db;ASTOP=No;Enlist=false;
1717
</property>
18-
<property name="dialect">NHibernate.Dialect.SybaseSQLAnywhere12Dialect</property>
18+
<property name="dialect">NHibernate.Dialect.SapSQLAnywhere17Dialect</property>
1919
<property name="query.substitutions">true=1;false=0</property>
2020
</session-factory>
2121
</hibernate-configuration>

0 commit comments

Comments
 (0)