[BUG] Multibyte Character gets corrupted and line breaks br are exposed in Email Notification

Permalink Browser Info Environment
Hi I was asked to help you translate the problem by pictron

When he sent an email notification

- Some multibyte character got corrupted especially where select menu. Perhaps, you are not handling multi=bytes well where select option is.
- When sending plain textarea value, <br> was printed in the email. When he looked at DB, <br> was also stored. So you may mixed up plain textarea and WYSISYG?

-----
his original comment and attachment attached

Thanks!

Originally at
https://www.concrete5.org/marketplace/addons/formidable-lite/support...

> Formidable Liteなんですが、メールを送付すると値が一部化けるのと、textareaに改行とかがあるとエスケープされた<br>の文字が出ちゃうんです。DBにもエスケープされた<br>で保存されちゃってるので、正規表現あたりがあやしいのですが、どう書いていいかわかりません。

3 Attachments

Type: Discussion
Status: In Progress
katz515
View Replies:
pictron replied on at Permalink Reply
文字化けの問題はサーバーの設定の可能が高くなってきました。すいません。今さくらVPSと他のzenlogicで同じ環境でメール送信しましたが問題なかったです。
ただ、現状の問題サーバーでも標準のフォームでは文字化けは怒りません。
複数行で<br>が表示されてしまうのは、どの環境でも起きている問題です。
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi Katz!

I can't seem to reproduce the the multichar thingy. The <br> in the text I can fix.
Could you see in which charset the table or db is? Maybe the combination of both is a problem...

Best,

Corretje

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.13
Version Installed - 5.7.5.13
Database Version - 20160615000000

# concrete5 Packages
Advanced HTML Block (0.9), Formidable (Lite) (0.9.21), Infotown Table (0.9.9), Manual Nav (2.2.0)

# concrete5 Overrides
blocks/autonav/templates/bootright_menu/view.php, blocks/autonav/templates/bootright_menu, blocks/autonav/templates/epidemic_breadcrumb/view.php, blocks/autonav/templates/epidemic_breadcrumb, blocks/autonav/templates, blocks/autonav, blocks/manual_nav/templates/epidemic_footer/view.php, blocks/manual_nav/templates/epidemic_footer/view?????.php, blocks/manual_nav/templates/epidemic_footer, blocks/manual_nav/templates/left_slide/view.php, blocks/manual_nav/templates/left_slide, blocks/manual_nav/templates/right_slide/view.php, blocks/manual_nav/templates/right_slide, blocks/manual_nav/templates/grandtop/view.php, blocks/manual_nav/templates/grandtop, blocks/manual_nav/templates, blocks/manual_nav, blocks/content/templates/top_listen/view.php, blocks/content/templates/top_listen, blocks/content/templates, blocks/content, blocks/infotown_table/templates/track_table/view.php, blocks/infotown_table/templates/track_table, blocks/infotown_table/templates, blocks/infotown_table, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/es_ES/LC_MESSAGES/messages.mo, languages/es_ES/LC_MESSAGES, languages/es_ES, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, themes/c57base/composer.json, themes/c57base/css/styles.less, themes/c57base/css/styles.xml, themes/c57base/css/styles.css, themes/c57base/css/variables.less, themes/c57base/css/bootstrap.min.css, themes/c57base/css/variables.css, themes/c57base/css/function.css, themes/c57base/css/function.less, themes/c57base/css, themes/c57base/default.php, themes/c57base/elements/footer.php, themes/c57base/elements/header.php, themes/c57base/elements, themes/c57base/images/README.md, themes/c57base/images/main_logo.svg, themes/c57base/images/bk_main_pt.png, themes/c57base/images/jumbotron_logo.svg, themes/c57base/images/slide-left01.jpg, themes/c57base/images/slide-left02.jpg, themes/c57base/images/slide-left03.jpg, themes/c57base/images/slide-right01.jpg, themes/c57base/images/slide-right02.jpg, themes/c57base/images/slide-right03.jpg, themes/c57base/images/top_copy.png, themes/c57base/images/top_plate.svg, themes/c57base/images/press.jpg, themes/c57base/images/jasrac.jpg, themes/c57base/images/secrite.jpg, themes/c57base/images/quality.jpg, themes/c57base/images/listen.jpg, themes/c57base/images/listen_plate.png, themes/c57base/images/top_plate_sb.svg, themes/c57base/images/bt-more-arrow.svg, themes/c57base/images/bt-more-arrow-white.svg, themes/c57base/images/icon_a.svg, themes/c57base/images/icon_q.svg, themes/c57base/images/8px.png, themes/c57base/images, themes/c57base/js/main.js, themes/c57base/js/README.md, themes/c57base/js/bootstrap.min.js, themes/c57base/js/animate.css, themes/c57base/js/jquery.bxslider.min.css, themes/c57base/js/jquery.bxslider.min.js, themes/c57base/js/jquery.easings.min.js, themes/c57base/js/wow.min.js, themes/c57base/js/pace.min.js, themes/c57base/js, themes/c57base/page_forbidden.php, themes/c57base/page_not_found.php, themes/c57base/page_theme.php, themes/c57base/README.md, themes/c57base/thumbnail.png, themes/c57base/view.php, themes/c57base/home.php, themes/c57base/fonts/glyphicons-halflings-regular.eot, themes/c57base/fonts/glyphicons-halflings-regular.svg, themes/c57base/fonts/glyphicons-halflings-regular.ttf, themes/c57base/fonts/glyphicons-halflings-regular.woff, themes/c57base/fonts, themes/c57base, blocks/autonav/templates/bootright_menu/view.php, blocks/autonav/templates/bootright_menu, blocks/autonav/templates/epidemic_breadcrumb/view.php, blocks/autonav/templates/epidemic_breadcrumb, blocks/autonav/templates, blocks/autonav, blocks/manual_nav/templates/epidemic_footer/view.php, blocks/manual_nav/templates/epidemic_footer/view?????.php, blocks/manual_nav/templates/epidemic_footer, blocks/manual_nav/templates/left_slide/view.php, blocks/manual_nav/templates/left_slide, blocks/manual_nav/templates/right_slide/view.php, blocks/manual_nav/templates/right_slide, blocks/manual_nav/templates/grandtop/view.php, blocks/manual_nav/templates/grandtop, blocks/manual_nav/templates, blocks/manual_nav, blocks/content/templates/top_listen/view.php, blocks/content/templates/top_listen, blocks/content/templates, blocks/content, blocks/infotown_table/templates/track_table/view.php, blocks/infotown_table/templates/track_table, blocks/infotown_table/templates, blocks/infotown_table, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/es_ES/LC_MESSAGES/messages.mo, languages/es_ES/LC_MESSAGES, languages/es_ES, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, themes/c57base/composer.json, themes/c57base/css/styles.less, themes/c57base/css/styles.xml, themes/c57base/css/styles.css, themes/c57base/css/variables.less, themes/c57base/css/bootstrap.min.css, themes/c57base/css/variables.css, themes/c57base/css/function.css, themes/c57base/css/function.less, themes/c57base/css, themes/c57base/default.php, themes/c57base/elements/footer.php, themes/c57base/elements/header.php, themes/c57base/elements, themes/c57base/images/README.md, themes/c57base/images/main_logo.svg, themes/c57base/images/bk_main_pt.png, themes/c57base/images/jumbotron_logo.svg, themes/c57base/images/slide-left01.jpg, themes/c57base/images/slide-left02.jpg, themes/c57base/images/slide-left03.jpg, themes/c57base/images/slide-right01.jpg, themes/c57base/images/slide-right02.jpg, themes/c57base/images/slide-right03.jpg, themes/c57base/images/top_copy.png, themes/c57base/images/top_plate.svg, themes/c57base/images/press.jpg, themes/c57base/images/jasrac.jpg, themes/c57base/images/secrite.jpg, themes/c57base/images/quality.jpg, themes/c57base/images/listen.jpg, themes/c57base/images/listen_plate.png, themes/c57base/images/top_plate_sb.svg, themes/c57base/images/bt-more-arrow.svg, themes/c57base/images/bt-more-arrow-white.svg, themes/c57base/images/icon_a.svg, themes/c57base/images/icon_q.svg, themes/c57base/images/8px.png, themes/c57base/images, themes/c57base/js/main.js, themes/c57base/js/README.md, themes/c57base/js/bootstrap.min.js, themes/c57base/js/animate.css, themes/c57base/js/jquery.bxslider.min.css, themes/c57base/js/jquery.bxslider.min.js, themes/c57base/js/jquery.easings.min.js, themes/c57base/js/wow.min.js, themes/c57base/js/pace.min.js, themes/c57base/js, themes/c57base/page_forbidden.php, themes/c57base/page_not_found.php, themes/c57base/page_theme.php, themes/c57base/README.md, themes/c57base/thumbnail.png, themes/c57base/view.php, themes/c57base/home.php, themes/c57base/fonts/glyphicons-halflings-regular.eot, themes/c57base/fonts/glyphicons-halflings-regular.svg, themes/c57base/fonts/glyphicons-halflings-regular.ttf, themes/c57base/fonts/glyphicons-halflings-regular.woff, themes/c57base/fonts, themes/c57base

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
apache2handler

# PHP Version
5.6.21

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, recode, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 3600
log_errors_max_len - 4096
max_file_uploads - 100
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 512M
post_max_size - 384M
sql.safe_mode - Off
upload_max_filesize - 256M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.