1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

47 Commits

Author SHA1 Message Date
Cameron
d960829532 Issue #4918 - Undefined constants cleanup. 2022-12-10 07:06:47 -08:00
Cameron
2c9afc83ee More PHP 8.1 fixes. 2021-11-26 12:36:25 -08:00
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
acc1a9af0d Plugin script tests and PHP8 fixes. 2021-01-22 13:44:10 -08:00
Cameron
f055b49d91 PHP8 Plugin code cleanup 2021-01-21 09:38:38 -08:00
Cameron
402d1f4126 Closes #1801 Code cleanup. Deprecated method errors added. 2020-12-22 14:48:28 -08:00
Cameron
5b82c292b1 Code cleanup 2020-12-18 19:55:12 -08:00
Cameron
42f0e902d4 Issue #4283 - Update deprecated sql method usage. Removed old code. 2020-12-17 05:52:54 -08:00
Cameron
f80d611202 Bbcode code optimization and test. 2020-12-15 08:59:31 -08:00
Cameron
44e260b121 Code cleanup and optimization 2020-12-14 16:21:48 -08:00
Cameron
afaac88003 PHP8 Compatibility and code cleanup. 2020-12-08 12:21:12 -08:00
Cameron
e1593de8ee Removed redundant PHP closing tags. 2020-08-10 15:49:44 -07:00
Jimako
2bf9af81b2 newsletter plugin - missing translations
fix #3608
2019-01-11 09:28:33 +01:00
Cameron
b40b1916a3 Issue #2970 btn-default > btn-default btn-secondary 2018-01-10 15:06:40 -08:00
Cameron
70df3a3ae6 Issue #2846 LAN vars cleanup 2017-11-06 13:48:29 -08:00
Cameron
870106d0d1 Fixes #1427 - Newsletter syntax error. 2016-03-14 12:07:23 -07:00
Cameron
9f96a70e76 Issue #1356 - Installation and PHP notice fixes. 2016-02-15 11:09:58 -08:00
Cameron
a469b7ca6e Deprecated function cleanup 2016-02-15 00:14:45 -08:00
Cameron
486f3d4961 Issue #1356 - PHP7 Fixes. 2016-02-14 12:15:55 -08:00
Jimmi08
5750b91b91 Issue #1309. e_BASE."user.php" replaced with SEF URL. 2016-01-27 11:56:59 +01: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
d12eef2f07 Issue #1138 - Bootstrap3 theme mostly complete. 2015-07-16 01:17:21 -07:00
Cameron
6499ff72f7 Issue #1138 Added 'btn-default' where missing. 2015-07-13 19:09:30 -07:00
Moc
5e68531891 Fix fatal error in newsletter plugin, minor code cleanup (#590) 2014-05-25 00:42:15 +02:00
Cameron
66eb7c1be7 Button styling updated to Bootstrap 'btn' 2013-04-26 13:48:23 -07:00
Moc
15b6fccfe3 Newsletter admin code clean-up 2013-03-17 13:20:25 +01:00
Moc
823e813a5e More require_once clean-up (#125) 2013-03-10 15:36:45 +01:00
SteveD
c0610bfa6a Sort a few documentation comments 2013-03-02 17:59:32 +00:00
Tijn Kuyper
ad33d7ddf5 Typo fix: succes to success 2013-02-11 10:22:25 +01:00
Tijn Kuyper
a56bdacf28 Fixes 2 typos in GUI of newsletter and tagwords plugin 2013-02-10 15:39:20 +01:00
Tijn Kuyper
f18c79277f Newsletter plugin - minor fixes in functionality 2013-02-09 13:19:21 +01:00
Tijn Kuyper
44dba93c1a Newsletter plugin major clean-up. GUI and LAN optimization (#90, #6) 2013-02-08 14:57:35 +01:00
Tijn Kuyper
772264c6df GUI fixes to the newsletter plugin - work in progress 2012-12-07 17:09:46 +01:00
secretr
4fecfffddd svn keywords added (v0.8) 2010-02-10 18:18:01 +00:00
e107steved
1234bf86bb Bugtracker #4734 - get rid of deprecated <center> 2009-12-21 22:31:04 +00:00
e107steved
eb05b14438 Latest mailer updates - primarily use new features in newsletter and notify. Also newsletter enhancements; thanks nlstart 2009-11-19 20:24:21 +00:00
CaMer0n
1377b23532 Fix copyright info. 2009-11-18 01:06:08 +00:00
marj
8d6c82d860 reencode some files to UTF-8 2009-11-17 13:48:46 +00:00
marj
5e462df2c7 CHARSET deprecated 2009-07-19 11:44:30 +00:00
e107steved
28bf4b7f86 Bugtracker #4689 - show newsletter issue 2009-03-05 22:22:18 +00:00
e107steved
6d0a344194 Bugtracker #4622 - newsletter admin bug fix plus some tidying up 2008-12-18 21:10:10 +00:00
e107steved
bc5d81d540 Bugtracker #4504 - hardcoded LAN, plus a couple of improvements - thanks nlstart 2008-09-22 20:38:26 +00:00
e107steved
b17743ef9e Bugtracker #3698 - XHTML compliance should sort line breaks in plain text newsletter 2007-01-27 17:47:29 +00:00
mrpete
ed8e84bac7 redundant code removed 2007-01-20 16:27:14 +00:00
e107steved
6930ad1c78 Possible fix bug #3604 2006-12-22 21:01:42 +00:00
lia
7a0c948323 bugfix #3536 : smtpkeepalive needed to reflect pref in newsletter 2006-12-02 11:54:09 +00:00
mcfly
e149b35fcc new module creation 2006-12-02 04:36:16 +00:00