Skip to content

Commit 3bc12ea

Browse files
committed
chore(mods): add important warning
1 parent ae59b88 commit 3bc12ea

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/types/models/mod_entity.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,17 @@ impl Mod {
242242

243243
let gd = query.gd.map(|x| vec![x, GDVersionEnum::All]);
244244

245+
/*
246+
* VERY IMPORTANT MESSAGE BELOW.
247+
* This beautiful chunk of code below uses format!() to reuse the same joins / where clauses
248+
* in 2 queries. This uses prepared statements, the parameters are bound in the queries at the end.
249+
*
250+
* DO NOT, I repeat, DO NOT enter any user input inside the format!().
251+
* I will find you personally if you do so.
252+
*
253+
* - Flame
254+
*/
255+
245256
let joins_filters = r#"
246257
INNER JOIN mod_versions mv ON m.id = mv.mod_id
247258
INNER JOIN mod_version_statuses mvs ON mvs.mod_version_id = mv.id

0 commit comments

Comments
 (0)