Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
bdc4f205
Commit
bdc4f205
authored
Nov 25, 2016
by
Scott
Committed by
GitHub
Nov 25, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #464 from pupi1985/patch-76
A few filter-basic fixes
parents
01f57f19
21915da4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
qa-filter-basic.php
qa-include/plugins/qa-filter-basic.php
+2
-2
No files found.
qa-include/plugins/qa-filter-basic.php
View file @
bdc4f205
...
...
@@ -89,7 +89,7 @@ class qa_filter_basic
else
{
$tagstring
=
qa_tags_to_tagstring
(
$question
[
'tags'
]);
if
(
qa_strlen
(
$tagstring
)
>
QA_DB_MAX_TAGS_LENGTH
)
{
// for storage
$errors
[
'tags'
]
=
qa_lang_sub
(
'main/max_length_x'
,
$maxlength
);
$errors
[
'tags'
]
=
qa_lang_sub
(
'main/max_length_x'
,
QA_DB_MAX_TAGS_LENGTH
);
}
}
}
...
...
@@ -107,7 +107,7 @@ class qa_filter_basic
public
function
filter_comment
(
&
$comment
,
&
$errors
,
$question
,
$parent
,
$oldcomment
)
{
$this
->
validate_field_length
(
$errors
,
$comment
,
'content'
,
0
,
QA_DB_MAX_CONTENT_LENGTH
);
// for storage
$this
->
validate_field_length
(
$errors
,
$comment
,
'text'
,
qa_opt
(
'min_len_
a
_content'
),
null
,
'content'
);
// for display
$this
->
validate_field_length
(
$errors
,
$comment
,
'text'
,
qa_opt
(
'min_len_
c
_content'
),
null
,
'content'
);
// for display
$this
->
validate_post_email
(
$errors
,
$comment
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment