glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.24k stars 1.29k forks source link

"\n" string in an e-mail gets converted to newline char. (\n) in a ticket #2398

Closed C-Duv closed 7 years ago

C-Duv commented 7 years ago

It seems the "\n" 2-characters string (not a newline character) gets interpreted as a newline character (\n) in the mail collector process.

Steps to reproduce:

  1. Have a mail collector configured
  2. Send an e-mail to the mail collector e-mail address containing the following in the body:

    \nas\foobar

  3. Wait for the collector to run and create the ticket

Expected result: Ticket description should contain:

\nas\foobar

Actual result: Ticket description contains:

\ as\foobar

Versions:

GLPI version: 9.1.2

PHP version and extensions:

PHP 5.6.30-0+deb8u1 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apc, apcu,
    bcmath, bz2, calendar, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap,
    intl, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix,
    readline, session, shmop, snmp, soap, sockets, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader,
    xmlrpc, xmlwriter, zip, zlib)

MySQL version: 5.5.55

Plugins versions:

addressing           Name: Adressage IP                   Version: 2.5.0      State: Enabled
news                 Name: Alertes                        Version: 1.3.2.5    State: Enabled
additionalalerts     Name: Alertes supplémentaires        Version: 1.8.0      State: Not activated
webapplications      Name: Applications Web               Version: 2.2.0      State: Enabled
archires             Name: Architectures réseau           Version: 2.1.0      State: Not activated
financialreports     Name: Arrêté du parc                 Version: 2.3.0      State: Enabled
autologin            Name: Auto Login                     Version: 2.1.1      State: Enabled
badges               Name: Badges                         Version: 2.2.0      State: Enabled
positions            Name: Cartographie                   Version: 4.3.1      State: Enabled
certificates         Name: Certificats                    Version: 2.2.0      State: Enabled
fields               Name: Champs supplémentaires         Version: 1.6.1      State: Enabled
shellcommands        Name: Commandes Shell                Version: 2.0.0      State: Enabled
printercounters      Name: Compteurs Imprimantes          Version: 1.3.0      State: Enabled
connections          Name: Connections                    Version: 0.90-1.7.3 State: Enabled
mydashboard          Name: Dashboard                      Version: 1.3.2      State: Enabled
consumables          Name: Demande de consommables        Version: 1.1.0      State: Not activated
domains              Name: Domaines                       Version: 1.8.0      State: Enabled
fusioninventory      Name: FusionInventory                Version: 9.1+1.1    State: Enabled
geninventorynumber   Name: Génération de numéros d'invent Version: 0.85+1.0   State: Not activated
genericobject        Name: Gestion d'objets               Version: 2.4.0      State: Enabled
racks                Name: Gestion de baies               Version: 1.7.0      State: Enabled
simcard              Name: Gestion de cartes SIM          Version: 1.4.2      State: Enabled
pdf                  Name: Impression pdf                 Version: 1.1        State: Enabled
moreticket           Name: More ticket                    Version: 1.2.1      State: Not activated
browsernotification  Name: Notification de Navigateur     Version: 1.1.8      State: Enabled
purgelogs            Name: Purge de l'historique          Version: 1.2.2      State: Enabled
room                 Name: Salles                         Version: 3.1.0      State: Enabled
webservices          Name: Services Web                   Version: 1.6.0      State: Not activated
dashboard            Name: Tableau de bord                Version: 0.8.1      State: Enabled
typology             Name: Typologies                     Version: 2.3.0      State: Enabled
trasher commented 7 years ago

There were changes on the last release on some "\whatever" management. Please try with 9.1.4 to confirm the problem still exists.

trasher commented 7 years ago

Should be fixed in current release. Feel free to reopen if problem persists.