21faa210dc
Merge PR #86 into develop
2021-03-27 05:32:24 +02:00
Denis Ryabov
0d2310f75d
simplify regex
2021-03-24 15:22:09 +03:00
Denis Ryabov
ab96c035ad
a "greedy" match (by @Llewellynvdm)
2021-03-24 15:13:28 +03:00
Denis Ryabov
0869a0cecb
fix comment text
2021-03-24 15:11:59 +03:00
Denis Ryabov
118846b53b
fix copyright
2021-03-11 16:00:58 +03:00
Denis Ryabov
0545fddb87
fix copyright
2021-03-11 15:59:54 +03:00
Denis Ryabov
01c5c5e550
fix copyright
2021-03-11 15:56:27 +03:00
Denis Ryabov
ba75eb5967
remove @author
tag
2021-03-11 13:41:07 +03:00
Denis Ryabov
8d7531a047
remove @author
tag
2021-03-11 13:40:09 +03:00
Denis Ryabov
321221a495
remove @author
tag
2021-03-11 13:39:11 +03:00
Denis Ryabov
65fe32b164
replace check against a preinstalled domains list by the link to the Joomla! Trademark Approval Registry page
2021-03-11 10:40:52 +03:00
Denis Ryabov
d102979258
add some comments
2021-03-11 01:56:04 +03:00
Denis Ryabov
c81699b61c
Add a description for each check in the code
2021-03-11 01:35:15 +03:00
Denis Ryabov
1432595581
temporaty remove argnum check
2021-03-11 01:34:51 +03:00
Denis Ryabov
b5fe0e91b4
check for BOM in language files
2021-03-11 01:20:57 +03:00
Denis Ryabov
08864234a9
correct authors list for new rule
2021-03-11 01:20:37 +03:00
Denis Ryabov
75d8daa931
apply code style (spaces to tabs)
2021-03-11 01:19:48 +03:00
Denis Ryabov
d583e82bd7
fix path for sql files
2021-03-11 01:17:37 +03:00
Denis Ryabov
4775ddd43b
correct authors list for new rule
2021-03-11 01:17:00 +03:00
Denis Ryabov
d353c8b2f8
commenting the code
2021-03-11 01:15:13 +03:00
Denis Ryabov
825208b28c
add DTD json for language packages
2021-03-11 01:13:56 +03:00
Denis Ryabov
a73780e524
don't require menu and languages sections in components
2021-03-11 01:11:09 +03:00
Denis Ryabov
b74a082198
support both file and filename names for files children in package manifest
2021-03-11 01:10:53 +03:00
Denis Ryabov
ffd0995830
fix dtd for config section in modules and plugins
2021-03-11 01:10:35 +03:00
Denis Ryabov
ab751af635
remove error for missed license and updateservers tags (as they are processed by other rules)
2021-03-11 01:10:16 +03:00
Denis Ryabov
79caa44fca
add support of any children (by using '*' as key)
2021-03-11 01:09:51 +03:00
Denis Ryabov
f7353bf312
add support of any attribute (by using '*' as value)
2021-03-11 01:09:32 +03:00
Denis Ryabov
62a887092c
move dtd files to a separate directory
2021-03-11 01:09:09 +03:00
Denis Ryabov
77ffde4f6c
correct authors list for new rule
2021-03-11 01:08:23 +03:00
Denis Ryabov
6091c866c0
commenting the code
2021-03-11 01:01:14 +03:00
Denis Ryabov
2cae2d0deb
show node content in errors/warnings messages
2021-03-11 00:57:19 +03:00
Denis Ryabov
c11c23c15a
check domain name against the list of approved domains
2021-03-11 00:56:35 +03:00
Denis Ryabov
5771fb0203
add list of alternative plugin group names
2021-03-11 00:56:13 +03:00
Denis Ryabov
75b6aa0f47
fix loading of language file
2021-03-11 00:55:35 +03:00
Denis Ryabov
5fafb747f0
fix loop through children nodes
2021-03-11 00:54:39 +03:00
Denis Ryabov
2c28bafe47
add extra names (BSD v2 and BSD v3) into licenses list
2021-03-11 00:52:28 +03:00
Denis Ryabov
7741b2b0ce
move licenses list to gpl directory
2021-03-11 00:52:06 +03:00
Denis Ryabov
53c5903fa0
remove leading '*' character to deal with multi-line license names
2021-03-11 00:51:37 +03:00
7e1346a2ca
Merge pull request #87 into joomla/develop
2021-03-07 02:58:08 +02:00
3d51728978
Added more comments to the calculate_line_number method and fixed the variable naming.
2021-03-07 02:13:09 +02:00
ebb388a5c7
Merge pull request #76 into joomla/develop
2021-03-07 02:08:19 +02:00
Denis Ryabov
216e482009
display plugin name in the message (for packages with multiple plugins)
2021-02-18 15:25:03 +03:00
Denis Ryabov
f536d77cc3
fix matching of plugin group in title (remove spaces for "Action Log", "Quick Icons", etc.)
2021-02-18 15:24:28 +03:00
Denis Ryabov
5bab76e834
don't warn on missed unzipped files (in packages)
2021-02-18 15:20:00 +03:00
Denis Ryabov
d508bbad6b
add addfieldpath attribute to all form fields
2021-02-18 15:17:13 +03:00
Denis Ryabov
8b0898713d
fix json
2021-02-18 15:16:51 +03:00
Denis Ryabov
e833785494
fix paths for language dirs
2021-02-18 15:13:51 +03:00
Denis Ryabov
75d1f5f871
add more field attributes and fieldset params
2021-02-14 01:19:04 +03:00
Denis Ryabov
4850ef0d43
remove check of config section from component manifest
2021-02-14 01:18:25 +03:00
Denis Ryabov
e063c3fe22
Add direct MySQLi access to the errors list
2021-02-14 00:13:03 +03:00
Denis Ryabov
a1197006e5
check packages
2021-02-14 00:02:08 +03:00
Denis Ryabov
0bf71c0950
fix regex
2021-02-13 23:56:59 +03:00
Denis Ryabov
a206aa91ba
Joomla!4 compatibility
2021-02-13 23:56:51 +03:00
Denis Ryabov
4f899fb39b
fix regex
2021-02-13 23:53:36 +03:00
Denis Ryabov
331a9e162f
support for "package" type
2021-02-13 23:53:26 +03:00
Denis Ryabov
329df98562
Joomla!4 compatibility
2021-02-13 23:53:09 +03:00
Denis Ryabov
aaa100fbbb
fix regular expressions ("." character should be escaped)
2021-02-13 23:12:08 +03:00
Denis Ryabov
80abc68994
support of Joomla!4
2021-02-13 23:01:07 +03:00
Denis Ryabov
4d67fe0602
Add validation of language files
2021-02-03 01:14:16 +03:00
Denis Ryabov
46ec8bd40a
update @since tag
2021-02-02 19:10:59 +03:00
Denis Ryabov
8e0d738131
Add check for incorrect file/folder references in the XML manifest
2021-02-02 19:09:20 +03:00
Denis Ryabov
74288b93d2
Add XML manifest validator
2021-02-02 18:58:29 +03:00
Denis Ryabov
070b22caae
one more directory to lookup for language file
2021-02-02 15:36:52 +03:00
Denis Ryabov
372ea55ad7
- fixed loading of language file
...
- check manifest file do exist
- check naming rules
- drop Joomla!1.5 support ("install" root element)
2021-02-02 14:56:56 +03:00
Denis Ryabov
02ccd6fa65
move lists of GPL and compatible licenses to separate files
2021-01-31 11:52:32 +03:00
f22a82d6cf
Merge pull request #77 from dryabov/patch-11
2021-01-27 15:15:04 +02:00
Denis Ryabov
fa5eb52dd6
Don't warn on str_replace and preg_replace
...
Both `str_replace` and `preg_replace` (deprecated /e modifier is checked in another rule) are widely used and shouldn't be considered as a marker of malicious code
2021-01-24 20:37:57 +03:00
Denis Ryabov
36159b616c
A simpler way to get line number
2021-01-24 20:32:07 +03:00
Denis Ryabov
92ff3e2bec
Update gpl.ini
...
Add most popular GPL-compatible licenses from https://www.gnu.org/licenses/license-list.en.html
2021-01-24 20:11:17 +03:00
SharkyKZ
b7c1d87817
Support exit in entry point check
2020-09-03 11:41:52 +03:00
Anibal Sanchez
510e0b168c
Merge pull request #51 from dryabov/patch-1
...
Fix false-positive for JAMSS rule#23
2019-05-17 11:25:17 +02:00
Anibal Sanchez
03c7294a4c
Merge pull request #54 from dryabov/patch-4
...
Add `print_r` to "errorlog" list
2019-05-17 11:24:50 +02:00
Denis Ryabov
373603166d
Add print_r
to "errorlog" list
...
Display a notice for `print_r` function (along with `error_log`, `var_export`, `var_dump`)
2019-05-15 17:25:32 +03:00
Denis Ryabov
e379627132
remove zero-width-space characters
...
Replace `mysql_​escape_​string` by `mysql_escape_string`
2019-05-15 17:23:19 +03:00
Denis Ryabov
2f7943f6ac
Fix false-positive for JAMSS rule#23
...
JAMSS rule#23 gives false-positive warning for files that starts with `defined('_JEXEC')` (because of partial `exec` match) and use `$_GET` or `$_POST`. This patch requires `exec` (and other function names in) to be checked explicitly using word boundaries (`\b`) in the regex.
2019-05-15 16:48:40 +03:00
anibalsanchez
0f241adba7
More Copryright fixes
2019-03-10 17:09:42 +01:00
anibalsanchez
5119fc102a
2.1.1 - Copyright updated to Joomla
2019-03-10 09:49:52 +01:00
anibalsanchez
b34cb440a4
2.1.0
2019-03-09 20:44:14 +01:00
Jaz Parkyn
e2eb961633
Removal of build tools
2017-02-14 14:34:35 +00:00