Skip to content

Commit 9e66822

Browse files
author
jens
committed
syntax adjustment
1 parent d2cef41 commit 9e66822

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/operators/detect_sqli.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ bool DetectSQLi::evaluate(Transaction *t, RuleWithActions *rule,
4444

4545
ms_dbg_a(t, 4,
4646
std::string("detected SQLi using libinjection with fingerprint '")
47-
+ fingerprint.data() + "' at: '" + input + "'")
47+
+ fingerprint.data() + "' at: '" + input + "'");
4848

4949
if (rule != nullptr && rule->hasCaptureAction()) {
5050
t->m_collections.m_tx_collection->storeOrUpdateFirst(
5151
"0", std::string(fingerprint.data()));
5252

5353
ms_dbg_a(t, 7,
5454
std::string("Added DetectSQLi match TX.0: ")
55-
+ fingerprint.data())
55+
+ fingerprint.data());
5656
}
5757
break;
5858

@@ -61,22 +61,22 @@ bool DetectSQLi::evaluate(Transaction *t, RuleWithActions *rule,
6161
std::string("libinjection parser error during SQLi analysis (")
6262
+ libinjectionResultToString(sqli_result)
6363
+ "); treating as match (fail-safe). Input: '"
64-
+ input + "'")
64+
+ input + "'");
6565

6666
if (rule != nullptr && rule->hasCaptureAction()) {
6767
t->m_collections.m_tx_collection->storeOrUpdateFirst(
6868
"0", input);
6969

7070
ms_dbg_a(t, 7,
7171
std::string("Added DetectSQLi error input TX.0: ")
72-
+ input)
72+
+ input);
7373
}
7474
break;
7575

7676
case LIBINJECTION_RESULT_FALSE:
7777
ms_dbg_a(t, 9,
7878
std::string("libinjection was not able to find any SQLi in: ")
79-
+ input)
79+
+ input);
8080
break;
8181
}
8282

src/operators/detect_xss.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ bool DetectXSS::evaluate(Transaction *t, RuleWithActions *rule,
3636

3737
switch (xss_result) {
3838
case LIBINJECTION_RESULT_TRUE:
39-
ms_dbg_a(t, 5, std::string("detected XSS using libinjection."))
39+
ms_dbg_a(t, 5, std::string("detected XSS using libinjection."));
4040
if (rule != nullptr && rule->hasCaptureAction()) {
4141
t->m_collections.m_tx_collection->storeOrUpdateFirst("0", input);
42-
ms_dbg_a(t, 7, std::string("Added DetectXSS match TX.0: ") + input)
42+
ms_dbg_a(t, 7, std::string("Added DetectXSS match TX.0: ") + input);
4343
}
4444
break;
4545

@@ -48,16 +48,16 @@ bool DetectXSS::evaluate(Transaction *t, RuleWithActions *rule,
4848
std::string("libinjection parser error during XSS analysis (")
4949
+ libinjectionResultToString(xss_result)
5050
+ "); treating as match (fail-safe). Input: "
51-
+ input)
51+
+ input);
5252
if (rule != nullptr && rule->hasCaptureAction()) {
5353
t->m_collections.m_tx_collection->storeOrUpdateFirst("0", input);
54-
ms_dbg_a(t, 7, std::string("Added DetectXSS error input TX.0: ") + input)
54+
ms_dbg_a(t, 7, std::string("Added DetectXSS error input TX.0: ") + input);
5555
}
5656
break;
5757

5858
case LIBINJECTION_RESULT_FALSE:
5959
ms_dbg_a(t, 9,
60-
std::string("libinjection was not able to find any XSS in: ") + input)
60+
std::string("libinjection was not able to find any XSS in: ") + input);
6161
break;
6262
}
6363

0 commit comments

Comments
 (0)