Skip to content

Commit bf7139a

Browse files
committed
feat: Check session when users submit forms
1 parent e00b3c6 commit bf7139a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/CustomForm.php

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ function CustomForm()
9999
// Do we need to submit this form?
100100
if (isset($_GET['submit']))
101101
{
102+
checkSession();
102103
$vars = array();
103104
$replace = array();
104105
$i = -1;

src/CustomForm.template.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function form_template_submit_form()
109109
</td>
110110
</tr>
111111
</table>
112-
<input type="hidden" name="sc" value="', $context['session_id'], '" />
112+
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
113113
</form>';
114114
}
115115

0 commit comments

Comments
 (0)