Browse Source

Fix contest query escaping

spaghetti 8 years ago
parent
commit
a64e162a19
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/contest/contest.php

+ 1
- 1
sections/contest/contest.php View File

@@ -15,7 +15,7 @@ if (!($ContestSettings = $Cache->get_value("contest_settings"))) {
15 15
     list($Amount, $Currency)   = $DB->next_record();
16 16
   }
17 17
   $ContestSettings = array(
18
-    'query'  => $QueryPart ?? '1=2',
18
+    'query'  => html_entity_decode($QueryPart ?? '1=2', ENT_QUOTES),
19 19
     'rules'  => $Rules,
20 20
     'start'  => $StartTime ?? 0,
21 21
     'end'    => $EndTime ?? 0,

Loading…
Cancel
Save