6.0.0-beta1
7/6/25

[#10149] imp removes backslashes form composeform on reload
Summary imp removes backslashes form composeform on reload
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester michael.menge (at) zdv (dot) uni-tuebingen (dot) de
Created 05/27/2011 (5154 days ago)
Due
Updated 06/16/2011 (5134 days ago)
Assigned 06/02/2011 (5148 days ago)
Resolved 06/16/2011 (5134 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/16/2011 12:57:43 PM Jan Schneider Version ⇒
Queue ⇒ Horde Framework Packages
 
06/16/2011 12:57:21 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
06/16/2011 12:56:56 PM CVS Commit Comment #10 Reply to this comment
Changes have been made in CVS for this ticket:

MFH: Fix removing too many backslashes with magic quotes enabled, if 
calling dispelMagicQuotes more than once (Bug #10149).
http://cvs.horde.org/diff.php/framework/Util/Attic/Util.php?rt=horde&r1=1.384.6.38&r2=1.384.6.39&ty=u
06/16/2011 12:55:24 PM Git Commit Comment #9 Reply to this comment
Changes have been made in Git for this ticket:

Fix removing too many backslashes with magic quotes enabled, if 
calling dispelMagicQuotes more than once (Bug #10149).

  2 files changed, 39 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/f09cfb4e9f9d64842e9456be442aab92f0ff7a36
06/10/2011 12:01:30 PM Jan Schneider Comment #8 Reply to this comment
You can easily work around this by disabling magic_quotes_gpc.
06/10/2011 10:35:50 AM michael (dot) menge (at) zdv (dot) uni-tuebingen (dot) de Comment #7 Reply to this comment
Do you require further feedback?
06/06/2011 09:00:50 AM michael (dot) menge (at) zdv (dot) uni-tuebingen (dot) de Comment #6 Reply to this comment
if found the following on the Horde test.php which seems
not to match the entry in php.ini

magic_quotes_runtime disabled: Yes
06/06/2011 08:41:30 AM michael (dot) menge (at) zdv (dot) uni-tuebingen (dot) de Comment #5 Reply to this comment
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off

Did i miss something in the DOCs
06/06/2011 08:28:04 AM Jan Schneider Comment #4 Reply to this comment
Do you have magic quotes enabled in your PHP configuration?
06/06/2011 07:14:27 AM michael (dot) menge (at) zdv (dot) uni-tuebingen (dot) de Comment #3 Reply to this comment
I hope the following Version and Config Informations will help to 
reproduce the bug.


Horde: 3.3.11
Imp: H3 (4.3.9)
PHP Version: 5.2.13
memcache: 3.0.4

all cache and session entries from Horde conf.php
$conf['session']['name'] = 'Horde';
$conf['session']['use_only_cookies'] = false;
$conf['session']['cache_limiter'] = 'nocache';
$conf['session']['timeout'] = 0;
$conf['sessionhandler']['type'] = 'none';
$conf['sessionhandler']['memcache'] = true;
$conf['group']['cache'] = true;
$conf['share']['cache'] = true;
$conf['cache']['default_lifetime'] = 86400;
$conf['cache']['driver'] = 'memcache';
$conf['memcache']['hostspec'] = array('localhost');
$conf['memcache']['port'] = array('11211');
$conf['memcache']['weight'] = array();
$conf['memcache']['persistent'] = true;
$conf['memcache']['c_threshold'] = 0;
$conf['memcache']['compression'] = true;
$conf['memcache']['large_items'] = true;
$conf['memcache']['enabled'] = true;

All cach entries from IMP conf.php
$conf['server']['cache_folders'] = true;
$conf['server']['cachejs'] = 'none';
$conf['server']['cachecss'] = 'none';
$conf['msgcache']['use_msgcache'] = false;
$conf['mlistcache']['lifetime'] = 604800;
$conf['mlistcache']['use_mlistcache'] = true;

Session and cach entries from php.ini

session.save_handler = files
session.save_path = "/zdv-system/data/session"
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly = 0
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor     = 1000
session.gc_maxlifetime = 1800
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 16
session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 1
session.hash_bits_per_character = 5
extension=memcache.so

06/02/2011 09:47:44 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Cannot reproduce.
05/27/2011 01:47:14 PM michael (dot) menge (at) zdv (dot) uni-tuebingen (dot) de Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ imp removes backslashes form composeform on reload
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
if imp reloads the compose window (e.g. on error because to and cc 
fields are empty)
it removes backslashes

To reproduce this bug:
write a new mail
leave to and cc empty
enter a mailtext with \  and \\
click on send

result:
single \ are removed and \\ are replaced by \

expected result:
the text is the same as befor clicking on send

Saved Queries