mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 03:26:20 +05:30
Bugfixes.
This commit is contained in:
parent
22a2ca5b21
commit
0330cdb9ef
1 changed files with 4 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ function validateComment($data)
|
|||
|
||||
// Validate js and time (if enabled) - minimum 2 seconds, maximum 600 seconds
|
||||
if (comments_config('comments.jstime') === 'true') {
|
||||
if (!$data['company'] || secondsGenerationSubmit($data['company']) < 3 || secondsGenerationSubmit($data['company']) > 600) {
|
||||
if (!$data['company'] || secondsGenerationSubmit($data['company']) < 3 || secondsGenerationSubmit($data['company']) > 3600) {
|
||||
$errors[] = 'comment_submission_error_spam';
|
||||
}
|
||||
}
|
||||
|
|
@ -497,6 +497,9 @@ function commentInsert($data, $url, $mdfile = null)
|
|||
// action can be subscribe, confirm, unsubscribe
|
||||
function setSubscription($email, $action) {
|
||||
$subscriptions_dir = 'content/comments/.subscriptions';
|
||||
if (!is_dir($subscriptions_dir)) {
|
||||
mkdir($subscriptions_dir);
|
||||
}
|
||||
$subscription_file = $subscriptions_dir . '/' . encryptEmailForFilename($email, comments_config('comments.salt'));
|
||||
|
||||
$subscription = getSubscription($email);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue