]> git.donarmstrong.com Git - roundcube.git/commitdiff
Imported Debian patch 0.3.1-2
authorVincent Bernat <bernat@debian.org>
Mon, 18 Jan 2010 22:11:01 +0000 (23:11 +0100)
committerJérémy Bobbio <lunar@debian.org>
Sat, 18 Jun 2011 18:27:56 +0000 (20:27 +0200)
debian/NEWS.Debian [deleted file]
debian/changelog
debian/control
debian/control.in
debian/patches/changeset_r3170.patch [new file with mode: 0644]
debian/patches/changeset_r3202.patch [new file with mode: 0644]
debian/patches/series
debian/roundcube-core.NEWS [new file with mode: 0644]

diff --git a/debian/NEWS.Debian b/debian/NEWS.Debian
deleted file mode 100644 (file)
index 2bd82c1..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-roundcube (0.3-3) unstable; urgency=low
-
-  * Starting from Roundcube 0.3, an incompatibility with Suhosin session
-    encryption is present. This can be resolved by tuning php.ini for
-    Roundcube with the "suhosin.session.encrypt" set to "Off".
-  
-    We ship a .htaccess in /var/lib/roundcube to disable this
-    option. However, this only works with a webserver like Apache with
-    mod_php. If you are using a webserver with PHP configured as a *CGI
-    process, you need to tune the php.ini for this process: either turn of
-    globally Suhosin session encryption in /etc/php5/conf.d/suhosin or you
-    can provide your own php.ini to php5-cgi with "-c" option.
-
- -- Vincent Bernat <bernat@debian.org>  Mon, 02 Nov 2009 19:48:22 +0100
-
index 4d477eac44e73614699b7cb3292b4cc0d55c9c54..9b698ffbaee0b04e82be8edee1efd5baf37c4726 100644 (file)
@@ -1,3 +1,12 @@
+roundcube (0.3.1-2) unstable; urgency=low
+
+  * Fix VCS links in debian/control, thanks to Torsten Landschoff. Closes: #555900.
+  * Really ship NEWS.Debian.
+  * Add changesets 3170 and 3202 from upstream to handle gracefully jQuery
+    1.4. Thanks to Volker Gropp for the report. Closes: #565715.
+
+ -- Vincent Bernat <bernat@debian.org>  Mon, 18 Jan 2010 23:11:01 +0100
+
 roundcube (0.3.1-1) unstable; urgency=low
 
   * New upstream release.
index 789ab6a49549f19ceaf35e4786f0c89d24971854..ed4b59d5649759d68009a032153dbc2aafdb92a0 100644 (file)
@@ -6,8 +6,8 @@ Uploaders: Vincent Bernat <bernat@debian.org>, Romain Beauxis <toots@rastageeks.
 Build-Depends: cdbs, debhelper, quilt, patchutils (>= 0.2.25), cdbs (>= 0.4.27), po-debconf
 Homepage: http://www.roundcube.net/
 Standards-Version: 3.8.3
-Vcs-Svn: svn://svn.debian.org/svn/pkg-roundcube/roundcube
-Vcs-Browser: http://svn.debian.org/wsvn/pkg-roundcube/roundcube
+Vcs-Svn: svn://svn.debian.org/svn/pkg-roundcube/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-roundcube/trunk/
 
 Package: roundcube-core
 Architecture: all
index 4d3065e117b710b4a283242ec22b4f313df8a16c..72d681f7630cd2adfa31e82f68930ff61abe50ad 100644 (file)
@@ -6,8 +6,8 @@ Uploaders: Vincent Bernat <bernat@debian.org>, Romain Beauxis <toots@rastageeks.
 Build-Depends: @cdbs@, po-debconf
 Homepage: http://www.roundcube.net/
 Standards-Version: 3.8.3
-Vcs-Svn: svn://svn.debian.org/svn/pkg-roundcube/roundcube
-Vcs-Browser: http://svn.debian.org/wsvn/pkg-roundcube/roundcube
+Vcs-Svn: svn://svn.debian.org/svn/pkg-roundcube/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-roundcube/trunk/
 
 Package: roundcube-core
 Architecture: all
diff --git a/debian/patches/changeset_r3170.patch b/debian/patches/changeset_r3170.patch
new file mode 100644 (file)
index 0000000..f820edc
--- /dev/null
@@ -0,0 +1,159 @@
+Use json_encode to ensure compatibility with JQuery 1.4.\r
+\r
+Index: roundcubemail/program/include/rcube_template.php\r
+===================================================================\r
+--- roundcubemail/program/include/rcube_template.php (revision 2980)\r
++++ roundcubemail/program/include/rcube_template.php (revision 3170)\r
+@@ -415,10 +415,10 @@\r
+         $out = '';\r
+         if (!$this->framed && !empty($this->js_env)) {\r
+-            $out .= JS_OBJECT_NAME . '.set_env('.json_serialize($this->js_env).");\n";\r
++            $out .= JS_OBJECT_NAME . '.set_env('.json_encode($this->js_env).");\n";\r
+         }\r
+         foreach ($this->js_commands as $i => $args) {\r
+             $method = array_shift($args);\r
+             foreach ($args as $i => $arg) {\r
+-                $args[$i] = json_serialize($arg);\r
++                $args[$i] = json_encode($arg);\r
+             }\r
+             $parent = $this->framed || preg_match('/^parent\./', $method);\r
+Index: roundcubemail/program/include/rcube_shared.inc\r
+===================================================================\r
+--- roundcubemail/program/include/rcube_shared.inc (revision 3132)\r
++++ roundcubemail/program/include/rcube_shared.inc (revision 3170)\r
+@@ -106,95 +106,4 @@\r
+     exit;\r
+     }\r
+-}\r
+-\r
+-\r
+-/**\r
+- * Returns whether an $str is a reserved word for any of the version of Javascript or ECMAScript\r
+- * @param str String to check\r
+- * @return boolean True if $str is a reserver word, False if not\r
+- */\r
+-function is_js_reserved_word($str)\r
+-{\r
+-  return in_array($str, array(\r
+-    // ECMASript ver 4 reserved words\r
+-    'as','break','case','catch','class','const','continue',\r
+-    'default','delete','do','else','export','extends','false','finally','for','function',\r
+-    'if','import','in','instanceof','is','namespace','new','null','package','private',\r
+-    'public','return','super','switch','this','throw','true','try','typeof','use','var',\r
+-    'void','while','with',\r
+-    // ECMAScript ver 4 future reserved words\r
+-    'abstract','debugger','enum','goto','implements','interface','native','protected',\r
+-    'synchronized','throws','transient','volatile',\r
+-    // special meaning in some contexts\r
+-    'get','set',\r
+-    // were reserved in ECMAScript ver 3\r
+-    'boolean','byte','char','double','final','float','int','long','short','static'\r
+-  ));\r
+-}\r
+-\r
+-\r
+-/**\r
+- * Convert a variable into a javascript object notation\r
+- *\r
+- * @param mixed Input value\r
+- * @return string Serialized JSON string\r
+- */\r
+-function json_serialize($var)\r
+-{\r
+-  if (is_object($var))\r
+-    $var = get_object_vars($var);\r
+-\r
+-  if (is_array($var))\r
+-  {\r
+-    // empty array\r
+-    if (!sizeof($var))\r
+-      return '[]';\r
+-    else\r
+-    {\r
+-      $keys_arr = array_keys($var);\r
+-      $is_assoc = $have_numeric = 0;\r
+-\r
+-      for ($i=0; $i<sizeof($keys_arr); ++$i)\r
+-      {\r
+-        if (is_numeric($keys_arr[$i]))\r
+-          $have_numeric = 1;\r
+-        if (!is_numeric($keys_arr[$i]) || $keys_arr[$i] != $i)\r
+-          $is_assoc = 1;\r
+-        if ($is_assoc && $have_numeric)\r
+-          break;\r
+-      }\r
+-      \r
+-      $brackets = $is_assoc ? '{}' : '[]';\r
+-      $pairs = array();\r
+-\r
+-      foreach ($var as $key => $value)\r
+-      {\r
+-        // enclose key with quotes if it is not variable-name conform\r
+-        if (!preg_match('/^[_a-zA-Z]{1}[_a-zA-Z0-9]*$/', $key) || is_js_reserved_word($key))\r
+-          $key = "'$key'";\r
+-\r
+-        $pairs[] = sprintf("%s%s", $is_assoc ? "$key:" : '', json_serialize($value));\r
+-      }\r
+-\r
+-      return $brackets{0} . implode(',', $pairs) . $brackets{1};\r
+-    }\r
+-  }\r
+-  else if (!is_string($var) && strval(intval($var)) === strval($var))\r
+-    return $var;\r
+-  else if (is_bool($var))\r
+-    return $var ? '1' : '0';\r
+-  else\r
+-    return "'".JQ($var)."'";\r
+-}\r
+-\r
+-\r
+-/**\r
+- * Function to convert an array to a javascript array\r
+- * Actually an alias function for json_serialize()\r
+- * @deprecated\r
+- */\r
+-function array2js($arr, $type='')\r
+-{\r
+-  return json_serialize($arr);\r
+ }\r
\r
+Index: roundcubemail/program/include/rcube_json_output.php\r
+===================================================================\r
+--- roundcubemail/program/include/rcube_json_output.php (revision 2905)\r
++++ roundcubemail/program/include/rcube_json_output.php (revision 3170)\r
+@@ -240,5 +240,5 @@\r
+           $response['callbacks'] = $this->callbacks;\r
\r
+-        echo json_serialize($response);\r
++        echo json_encode($response);\r
+     }\r
+     \r
+@@ -256,5 +256,5 @@\r
+             $method = array_shift($args);\r
+             foreach ($args as $i => $arg) {\r
+-                $args[$i] = json_serialize($arg);\r
++                $args[$i] = json_encode($arg);\r
+             }\r
\r
+Index: roundcubemail/program/steps/mail/func.inc\r
+===================================================================\r
+--- roundcubemail/program/steps/mail/func.inc (revision 3099)\r
++++ roundcubemail/program/steps/mail/func.inc (revision 3170)\r
+@@ -523,5 +523,5 @@\r
+   if (is_array($quota)) {\r
+     $OUTPUT->add_script('$(document).ready(function(){\r
+-      rcmail.set_quota('.json_serialize($quota).')});', 'foot');\r
++      rcmail.set_quota('.json_encode($quota).')});', 'foot');\r
+     $quota = '';\r
+     }\r
+Index: roundcubemail/program/steps/mail/compose.inc\r
+===================================================================\r
+--- roundcubemail/program/steps/mail/compose.inc (revision 3166)\r
++++ roundcubemail/program/steps/mail/compose.inc (revision 3170)\r
+@@ -507,5 +507,5 @@\r
+       JQ(Q(rcube_label('revertto'))),\r
+       JQ(Q(rcube_label('nospellerrors'))),\r
+-      json_serialize($spellcheck_langs),\r
++      json_encode($spellcheck_langs),\r
+       $lang,\r
+       $attrib['id'],\r
diff --git a/debian/patches/changeset_r3202.patch b/debian/patches/changeset_r3202.patch
new file mode 100644 (file)
index 0000000..645734b
--- /dev/null
@@ -0,0 +1,12 @@
+Compatibility with jQuery 1.4.\r
+\r
+Index: roundcubemail/program/include/rcube_json_output.php\r
+===================================================================\r
+--- roundcubemail/program/include/rcube_json_output.php (revision 3175)\r
++++ roundcubemail/program/include/rcube_json_output.php (revision 3202)\r
+@@ -219,5 +219,4 @@\r
+             send_nocacheing_headers();\r
+             header('Content-Type: text/plain; charset=' . $this->get_charset());\r
+-            print '/** ajax response ['.date('d/M/Y h:i:s O')."] **/\n";\r
+         }\r
\r
index 055d9040eda23d0ce0889c68975d5f518b2acb63..7b7b57cd76198413e8d8cd7544cf2017de60eedf 100644 (file)
@@ -4,3 +4,5 @@ use_packaged_tinymce.patch
 correct-magic-path.patch
 use_pspell.patch
 loginbox-size.patch
+changeset_r3170.patch
+changeset_r3202.patch
diff --git a/debian/roundcube-core.NEWS b/debian/roundcube-core.NEWS
new file mode 100644 (file)
index 0000000..abdc484
--- /dev/null
@@ -0,0 +1,15 @@
+roundcube (0.3.1-2) unstable; urgency=low
+
+  * Starting from Roundcube 0.3, an incompatibility with Suhosin session
+    encryption is present. This can be resolved by tuning php.ini for
+    Roundcube with the "suhosin.session.encrypt" set to "Off".
+  
+    We ship a .htaccess in /var/lib/roundcube to disable this
+    option. However, this only works with a webserver like Apache with
+    mod_php. If you are using a webserver with PHP configured as a *CGI
+    process, you need to tune the php.ini for this process: either turn of
+    globally Suhosin session encryption in /etc/php5/conf.d/suhosin or you
+    can provide your own php.ini to php5-cgi with "-c" option.
+
+ -- Vincent Bernat <bernat@debian.org>  Mon, 02 Nov 2009 19:48:22 +0100
+