6.0.0-RC7
6/22/26

[#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 5/27/11 (5505 days ago)
Due
Updated 6/16/11 (5485 days ago)
Assigned 6/2/11 (5499 days ago)
Resolved 6/16/11 (5485 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
4312 Jan Schneider Version ⇒
Queue ⇒ Horde Framework Packages
 
2112 Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
5612 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
2412 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
3012 Jan Schneider Comment #8 Reply to this comment
You can easily work around this by disabling magic_quotes_gpc.
5010 michael (dot) menge (at) zdv (dot) uni-tuebingen (dot) de Comment #7 Reply to this comment
Do you require further feedback?
509 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
308 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
48 Jan Schneider Comment #4 Reply to this comment
Do you have magic quotes enabled in your PHP configuration?
277 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

449 Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Cannot reproduce.
141 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