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
ee464286e0
BC Fix for contact LANs.
2021-04-12 14:31:27 -07:00
Cameron
0876e0d43b
Contact LANs updated to v2 specifications. BC fix included.
2021-03-29 17:50:51 -07:00
Jimako
b5d237f4a9
#3912 e_ROUTE for legacy version contact page
2021-02-22 21:04:47 +01:00
Cameron
1fae6bf7cf
Allow for shortcode usage in the contact 'layout' template.
2021-02-18 15:44:58 -08:00
Cameron
d0404cb9b3
Issue #4372 Contact page code cleanup and 'layout' template added.
2021-02-17 19:07:45 -08:00
Cameron
5654f6acbf
Issue #4372 Make sure shortcode is loaded.
2021-02-15 12:32:28 -08:00
Cameron
80ff17194f
PHP8 fix. Admin css tweak for debug info.
2021-02-15 11:01:55 -08:00
Cameron
c94b1867a3
Issue #4372 - Enhancement: Contact page info. Requires database update.
2021-02-15 10:58:49 -08:00
Cameron
b19f9ffbc3
Frontend scripts tests. (may break some things)
2021-01-19 18:52:56 -08:00
Cameron
76144e6b4f
Issue #4352 e107::canonical() method added.
...
Use define('e_DEBUG_CANONICAL', true); in e107_config.php to test usage.
2021-01-19 07:54:13 -08:00
Cameron
15c97cf73a
Fixes #4096 - GDPR value missing from contact form results.
2020-02-15 10:29:56 -08:00
Serios
a280ec029f
Fixing an issue that with contact form sending unnecessary additional data
...
There is an option that dev can add additional fields to contact form, that are sent back. But GDPR field is send back too, also if using NoCaptcha ReCaptcha plugin, response token from Google is send back too.
2019-12-16 15:29:41 +02:00
Tijn Kuyper
2db9df45b1
#3684 - contact style ID
...
Create consistency (template name and template key)
e.g.
$CONTACT_TEMPLATE['menu'] = contact-menu
$FORUM_VIEWTOPIC_TEMPLATE['replies'] = forum-viewtopic-replies
2019-09-17 14:59:25 +02:00
Cameron
9c79d04307
Fixes #3312 - Contact page LAN loading.
2018-07-23 11:13:13 -07:00
Cameron
43d0211590
Code cleanup: deprecated include_lan()
2017-01-23 09:41:23 -08:00
Cameron
3a3848460c
Issue #2178 - Subject validation fix.
2016-12-20 15:38:33 -08:00
lonalore
a03fe161d5
Code cleanup.
2016-12-15 15:35:18 +01:00
Cameron
50fc69a124
Contact Form: Simple keyword and phrase filtering option added.
2016-08-28 10:32:58 -07:00
Cameron
87ce418e14
Fix for missing line-breaks in submitted 'contact form' messages.
2016-02-06 11:32:31 -08:00
Cameron
e5a51fa99e
Contact form template upgraded to use Bootstrap markup.
2015-08-17 15:42:31 -07:00
Cameron
ec5db40d67
Contact form is now more flexible, allowing for custom fields in the template and customization of the email subject.
2015-08-17 11:22:24 -07:00
Cameron
973ae6107d
Fixes #1128 , Issue #6 - Contact menu missing LAN.
2015-08-16 15:17:54 -07:00
Cameron
4acc233570
Fixes some spam-filter issues with emails coming via the contact form.
2015-05-31 15:32:47 -07:00
Cameron
1f8092d9c7
Contact page visibility preference added. eg. Limit the contact form to members or a userclass if required.
2015-05-31 12:50:16 -07:00
Cameron
c1430f257a
Fixes #900 - Contact form results were going to incorrect recipient.
2015-03-01 21:37:15 -08:00
Cameron
9a21cad851
Code cleanup / globals removal etc.
2015-02-15 16:07:27 -08:00
Moc
4265dc5171
#740 - IP address in contact email now displays in IPv4 format if possible
2014-08-24 13:34:00 +02:00
Cameron
163a5e5ade
Added Contact Info Template
2013-04-30 03:10:23 -07:00
SecretR
3ec9e7487e
Issue #183 : $sc_style not working with new SC batch methods:
...
- Wrapper support added (shortcode batches only, needs explicit
wrapper registration)
- new $SC_STYLE - not global, same format as the new wrapper
- $sc_style is deprecated now
- more detailed info in GitHub comments of the issue
2013-04-28 19:14:33 +03:00
Cameron
536c148401
Tinymce bootstrap dialog tweaks. Contact page template.
2013-03-09 03:54:05 -08:00
Cameron
c4fa286ddf
Contact page shortcode enhancements
2013-03-06 14:55:39 -08:00
Tijn Kuyper
adc98596c2
Various clean-up ( #6 , #125 , 90). Removal of message and form handler. Headers updated.
2013-02-27 17:18:33 +01:00
Tijn Kuyper
e2a9133e80
#125 - require_once() clean-up, also header and various other clean-up
2013-02-27 15:19:04 +01:00
Tijn Kuyper
f07434a3cb
And more notice removals.
...
Also some plugin GUI clean-up (rss, tagwords, trackback)
2012-12-08 15:52:40 +01:00
CaMer0n
a0743652de
More batch-shortcode cleanup.
2012-06-20 01:12:33 +00:00
e107steved
5ecdcd2440
Get rid of deprecated functions
2010-10-28 20:17:40 +00:00
CaMer0n
49da61acef
Redirect if Contact page is unused.
2010-07-27 10:25:17 +00:00
CaMer0n
caa79b6454
Shortcode path fixes
2010-02-10 21:53:56 +00:00
secretr
4fecfffddd
svn keywords added (v0.8)
2010-02-10 18:18:01 +00:00
e107steved
941fe39491
Correct SUPERMODIFIERS
2009-12-10 21:03:56 +00:00
CaMer0n
1377b23532
Fix copyright info.
2009-11-18 01:06:08 +00:00
marj
921e428a01
Add include_lan() to fornt
2009-08-28 15:30:25 +00:00
bugrain
18e8d93b53
Changed a toHTML() to parseTemplate() when formatting the Contact Info from a template - was adding unneccessary break tags.
2009-07-27 21:12:42 +00:00
CaMer0n
c6568d0b31
Updated file description
2009-07-14 05:31:57 +00:00
e107steved
778d207f39
Various small updates for contact form, linkwords URL length, download log readback
2008-01-11 22:13:43 +00:00
CaMer0n
202de28639
bugfix: contact page - cleaned user input
2007-09-09 07:05:06 +00:00
e107steved
3d3995a010
Send to a selected userclass with 1 member correcly
2007-04-15 14:37:17 +00:00
CaMer0n
eba031ef6e
Bug #3861 - Fixed constants from being changed in email subject.
2007-03-26 06:34:56 +00:00
mcfly
e149b35fcc
new module creation
2006-12-02 04:36:16 +00:00