Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cleantalk-3211127
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
cleantalk-3211127
Commits
869e901e
Commit
869e901e
authored
6 years ago
by
Artyom Davydov
Browse files
Options
Downloads
Patches
Plain Diff
remove session vars
parent
f968f5a8
No related branches found
Branches containing commit
Tags
7.x-3.42
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cleantalk.module
+0
-5
0 additions, 5 deletions
cleantalk.module
with
0 additions
and
5 deletions
cleantalk.module
+
0
−
5
View file @
869e901e
...
...
@@ -1322,8 +1322,6 @@ function cleantalk_get_real_ip()
*/
function
cleantalk_page_build
(
&
$page
)
{
drupal_session_initialize
();
drupal_save_session
(
true
);
if
(
$_SERVER
[
'REQUEST_METHOD'
]
==
'GET'
)
{
...
...
@@ -1856,11 +1854,9 @@ if ($url_exclusion)
$js_cookie_added
=
TRUE
;
if
(
$form_id
==
'user_register_form'
)
{
$session_time_key
=
'ct_submit_register_time'
;
$form
[
'#validate'
][]
=
'cleantalk_validate_register'
;
}
else
{
$session_time_key
=
'ct_submit_comment_time'
;
if
(
preg_match
(
'|contact_(.*?)_form|'
,
$form_id
))
{
$form
[
'#validate'
][]
=
'cleantalk_validate_contact_message'
;
}
...
...
@@ -1964,7 +1960,6 @@ if ($url_exclusion)
$ct_request
->
sender_ip
=
cleantalk_get_real_ip
();
$ct_submit_time
=
submit_time_test
();
//drupal_session_start();
switch
(
$spam_check
[
'type'
])
{
case
'comment'
:
case
'contact'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment