Nick Liu
f6d6d1b185
Deprecate e_parse::toJS()
...
`e_parse::toJS()`, documented with the description
> Convert text blocks which are to be embedded within JS
, does not protect strings from injections, which appears to be its
primary use. Additionally, it performs multiple unrelated string
modifications:
* Replace Windows line breaks with a literal `\\n` (which would later be
parsed as `\n` in JavaScript/JSON)
* Does not modify Unix line breaks (`\n`), which is inconsistent with
the Windows line break behavior
* Removes HTML tags
* Replaces HTML entities as `htmlentities()` does
This method cannot be fixed because its usages are inconsistent. Most
notably, some usages surround the method's output in single quotes while
others surround it with double quotes. Strings cannot be JSON-encoded
without confounding quotation mark styles.
All core usages of `e_parse::toJS()` have been replaced with
alternatives, which are also documented in the method's DocBlock.
Fixes : #4546
2021-08-31 00:11:14 +02:00
Cameron
b4c33735d6
Closes #4380 - Moved submit button on language file editor modal. Removed some PHP errors.
2021-02-12 14:27:21 -08:00
Cameron
76dbd4469e
Fixed error in {XURL_ICONS} shortcode. Added a test. Fixed some warnings in the admin/language page.
2021-01-25 17:57:34 -08:00
Cameron
04bbad449a
Test admin scripts are parsing correctly.
2021-01-16 13:32:35 -08:00
Cameron
b5ff8c76f7
Fix for lancheck failing due to ../ in the URL on plugin/theme folders.
2020-12-30 10:11:04 -08:00
Cameron
601df26d51
Code optimization for speed and reduced memory usage.
2020-12-20 11:50:10 -08:00
Cameron
7238743542
Regex fixes and path fix for TinyMce.
2020-12-18 13:07:45 -08:00
Nick Liu
f256b924ce
Fix all PHP 8.0 test failures
2020-11-30 12:55:00 +01:00
Cameron
daf77daa21
Fixes Issue #4229 - Online language packs not displaying if version contains "-rc1"
2020-08-19 10:06:53 -07:00
Cameron
e7a79edcd0
Moved core-image to e107_system/ and renamed to core_image.phar
2020-05-11 13:28:01 -07:00
Cameron
4424c9906b
LandingZero theme removed from core and moved to its own repo: https://github.com/e107inc/landingzero
2020-04-13 16:43:25 -07:00
Nick Liu
b4e48f8cbf
Fix duplicate constant in lancheckTest
2020-01-17 19:08:46 +01:00
Cameron
405677e64d
Remove unnecessary perm check.
2019-01-30 12:28:28 -08:00
Tijn Kuyper
6f18c238bc
Closes #3617 - LAN pack export message updated
...
Emails are no longer (unneccesarily) sent
2019-01-27 14:57:10 +01:00
Achim Ennenbach
f1d2ca4465
fixes #3632 : the regex to extract the language defines and values
...
missed the "u" (unicode) flag. Due to that, some utf-8 values
were malformed during processing.
2019-01-23 18:58:50 +01:00
Newb I the Newbd
26820c5ddf
Fix language editor wrongly parsing HTML entities
2018-09-05 01:38:36 +02:00
Cameron
4ab4220093
PHP 5.4 fix.
2018-08-24 12:51:06 -07:00
Achim Ennenbach
4c54742ba9
fixes #3059 list of online languages didn't load
2018-08-04 20:53:01 +02:00
Achim Ennenbach
047b7f8f7d
fixes #3059 Language list was empty, even if languages were available
...
download and info link returned from languagepacks.xml contain wrong links
2018-07-04 12:09:25 +02:00
Cameron
e1b5dd9449
Display pre-release language packs.
2017-11-07 14:21:06 -08:00
Cameron
1063ffe543
Issue #2846 LAN vars cleanup
2017-11-06 17:32:00 -08:00
Cameron
8be9f64641
Warning removal
2017-11-06 13:27:44 -08:00
Cameron
c4f1f1c04d
Language file cleaning method now removes empty defines.
2017-10-23 19:10:24 -07:00
Cameron
97830a89fe
Lancheck added option to hide warnings
2017-10-17 07:49:13 -07:00
Cameron
7c0cc8f37c
Clean <b> tags from lan files.
2017-10-17 07:18:51 -07:00
Cameron
632d9b11c2
Renamed commentOut() to cleanFile().
2017-10-16 20:00:04 -07:00
Cameron
7b59fb31c2
Added new method to lanCheck to comment-out defines inside language files.
2017-10-16 19:31:31 -07:00
Cameron
a8acff8b39
Language-Pack: Comment out default LAN in generated files.
2017-10-16 09:39:55 -07:00
Cameron
71face9e46
Removed closing PHP tag from generated LAN files. Removed empty LAN definitions.
2017-10-14 15:51:27 -07:00
Cameron
ef239dbc0e
Language File Editor no longer saves definitions with empty values.
2017-10-14 14:55:30 -07:00
Cameron
b7fe1322bc
Lancheck support for theme folders.
2017-10-14 13:05:59 -07:00
Cameron
0fda16e713
Added lastErrorMessage() method to XML class.
2017-09-14 12:07:30 -07:00
Gábor
2cbb2be20b
Update lancheck.php
2017-04-28 10:51:45 +02:00
Cameron
4650aa8d91
New constant: e_VERSION for the currently installed version of e107. Prevents the need for further loading of ver.php and useful to detect when an upgrade of core files has been performed.
2017-04-27 15:21:20 -07:00
Cameron
077b1d34a7
Feature: Language-Packs can now be downloaded and installed without leaving the admin area.
2017-04-23 12:38:05 -07:00
Tijn Kuyper
a37fe33173
Fixes #1438 - Link updated to translation team
2017-04-17 11:23:49 +02:00
Gábor
5595f206c6
Update lancheck.php
2017-03-08 05:19:25 +01:00
Gábor
ab5833a752
Update lancheck.php
2017-02-26 05:52:47 +01:00
Gábor
144e03332a
Update lancheck.php
2017-02-25 20:00:28 +01:00
Gábor
3d00072bb9
Remove style
2017-02-21 07:09:58 +01:00
Gábor
fffba72c9f
Update lancheck.php
...
Button optimization
2017-02-18 11:13:52 +01:00
Tijn Kuyper
347c9f9af0
Update methods to load LAN files in Admin Area
...
(fingers crossed there are no typo's...)
2017-01-17 01:33:03 +01:00
MikeyGMT
d1dc3f7462
#6 Cleanup Admin Languages and Lancheck - corrected
...
#6 Cleanup Admin Languages and Lancheck - corrected missing apostrophe.
2016-10-18 07:58:24 +01:00
MikeyGMT
e608f00b14
#6 Cleanup Lancheck - avoid duplication - missing
...
#6 Cleanup Lancheck - avoid duplication - missing
2016-10-16 22:54:54 +01:00
MikeyGMT
c5fbb5332c
#6 Clean up Lans on Core Languages & Checker
...
#6 Clean up Lans on Core Languages & Checker
2016-10-10 20:06:43 +01:00
Cameron
f5fe166c11
Merge pull request #1475 from OTroccaz/lancheck
...
Avoid "Missing file" message for deprecated files in language-Packs verification
2016-04-06 14:32:52 -07:00
Cameron
9c5f7e1087
Issue #1481 - non-core plugins were appearing in language-pack zip file.
2016-04-04 17:33:51 -07:00
OTroccaz
5d8f84c29a
Avoid "Missing file" message for deprecated files in language-Packs verification
...
Deprecated files were taken into account only for language other than
English
2016-03-30 19:01:51 +02:00
Cameron
796f5fa95c
Header location cleanup. From now, please use e107::redirect(); to redirect to the home page, or e107::redirect('admin'); to redirect to the admin start page or e107::redirect($url);
2016-01-13 19:18:12 -08:00
Cameron
de49a2cce9
Sort languages in Admin Navigation. Removed false positive from language-checker error detection. Improved admin login error handling.
2015-09-05 20:04:28 -07:00