Projects
Kolab:3.4
kolab-syncroton
rcube-imap-murder-quoting.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rcube-imap-murder-quoting.patch of Package kolab-syncroton (Revision 13)
Currently displaying revision
13
,
Show latest
diff -ur kolab-syncroton.orig/lib/ext/Roundcube/rcube_imap_generic.php kolab-syncroton/lib/ext/Roundcube/rcube_imap_generic.php --- kolab-syncroton.orig/lib/ext/Roundcube/rcube_imap_generic.php 2012-11-26 04:58:14.000000000 -0600 +++ kolab-syncroton/lib/ext/Roundcube/rcube_imap_generic.php 2013-02-12 08:58:03.000000000 -0600 @@ -52,6 +52,8 @@ '*' => '\\*', ); + public static $mupdate; + private $fp; private $host; private $logged = false; @@ -3071,6 +3073,12 @@ } foreach ($data as $entry) { + // If we are running in a murder topology, the entry[2] string needs + // to be escaped. + if (self::$mupdate) { + $entry[2] = addcslashes($entry[2], '\\"'); + } + // ANNOTATEMORE drafts before version 08 require quoted parameters $entries[] = sprintf('%s (%s %s)', $this->escape($entry[0], true), $this->escape($entry[1], true), $this->escape($entry[2], true)); @@ -3620,6 +3628,10 @@ $this->prefs['literal+'] = true; } + if (preg_match('/(\[| )MUPDATE=.*/', $str)) { + self::$mupdate = true; + } + if ($trusted) { $this->capability_readed = true; }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.