pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/contao35 www/contao35: add two fixes



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eadc48c9ca13
branches:  trunk
changeset: 440216:eadc48c9ca13
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Oct 04 06:31:02 2020 +0000

description:
www/contao35: add two fixes

* Add fix for CVE-2020-25768.
* Fix time range problem on positive timezone.

Bump PKGREVISION.

diffstat:

 www/contao35/Makefile                                                   |   3 +-
 www/contao35/distinfo                                                   |   4 +-
 www/contao35/patches/patch-system_modules_core_library_Contao_Input.php |  26 ++++++++++
 www/contao35/patches/patch-system_modules_news_dca_tl__news.php         |  15 +++++
 4 files changed, 46 insertions(+), 2 deletions(-)

diffs (76 lines):

diff -r 5428a86a5ac9 -r eadc48c9ca13 www/contao35/Makefile
--- a/www/contao35/Makefile     Sun Oct 04 06:29:05 2020 +0000
+++ b/www/contao35/Makefile     Sun Oct 04 06:31:02 2020 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.47 2019/12/16 16:30:14 taca Exp $
+# $NetBSD: Makefile,v 1.48 2020/10/04 06:31:02 taca Exp $
 #
 
 DISTNAME=      contao-${CT_PKGVER}
 PKGNAME=       ${PHP_PKG_PREFIX}-contao${CT_VER}-${CT_PKGVER}
+PKGREVISION=   1
 CATEGORIES=    www
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=contao/}
 GITHUB_PROJECT=        core
diff -r 5428a86a5ac9 -r eadc48c9ca13 www/contao35/distinfo
--- a/www/contao35/distinfo     Sun Oct 04 06:29:05 2020 +0000
+++ b/www/contao35/distinfo     Sun Oct 04 06:31:02 2020 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.36 2019/04/14 09:23:06 taca Exp $
+$NetBSD: distinfo,v 1.37 2020/10/04 06:31:02 taca Exp $
 
 SHA1 (contao-3.5.40.tar.gz) = 67ee42c5232142bf7b7f9f86635f9a5dc7c3536d
 RMD160 (contao-3.5.40.tar.gz) = b8fdb80da8b96fd7820f972f5b33418fadcadf81
 SHA512 (contao-3.5.40.tar.gz) = 54a2e00fdca1bd3a11464d5c74113cbb74b7d39fc368dc6de7608a4a8dd7fe5464d9840b0ecd37ca2ee7df6cf0ac004a0e2903c79e06c7509787a6700814d598
 Size (contao-3.5.40.tar.gz) = 11204594 bytes
+SHA1 (patch-system_modules_core_library_Contao_Input.php) = 07cb28f17ea7b028070bc039ea47c05ca790beb0
+SHA1 (patch-system_modules_news_dca_tl__news.php) = 13cee5a492f8ae63fe478b5e8bd9b5af477aa9ac
diff -r 5428a86a5ac9 -r eadc48c9ca13 www/contao35/patches/patch-system_modules_core_library_Contao_Input.php
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/contao35/patches/patch-system_modules_core_library_Contao_Input.php   Sun Oct 04 06:31:02 2020 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-system_modules_core_library_Contao_Input.php,v 1.1 2020/10/04 06:31:02 taca Exp $
+
+Apply fix for CVE-2020-25768.
+
+--- system/modules/core/library/Contao/Input.php.orig  2019-04-11 11:11:34.000000000 +0000
++++ system/modules/core/library/Contao/Input.php
+@@ -765,7 +765,18 @@ class Input
+        */
+       public static function encodeInsertTags($varValue)
+       {
+-              return str_replace(array('{{', '}}'), array('&#123;&#123;', '&#125;&#125;'), $varValue);
++              // Recursively encode insert tags
++              if (\is_array($varValue))
++              {
++                      foreach ($varValue as $k=>$v)
++                      {
++                              $varValue[$k] = static::encodeInsertTags($v);
++                      }
++
++                      return $varValue;
++              }
++
++              return str_replace(array('{{', '}}'), array('&#123;&#123;', '&#125;&#125;'), (string) $varValue);
+       }
+ 
+ 
diff -r 5428a86a5ac9 -r eadc48c9ca13 www/contao35/patches/patch-system_modules_news_dca_tl__news.php
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/contao35/patches/patch-system_modules_news_dca_tl__news.php   Sun Oct 04 06:31:02 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-system_modules_news_dca_tl__news.php,v 1.1 2020/10/04 06:31:02 taca Exp $
+
+Fix time range problem on positive timezone.
+
+--- system/modules/news/dca/tl_news.php.orig   2019-04-11 11:11:34.000000000 +0000
++++ system/modules/news/dca/tl_news.php
+@@ -228,7 +228,7 @@ $GLOBALS['TL_DCA']['tl_news'] = array
+                       'exclude'                 => true,
+                       'inputType'               => 'text',
+                       'eval'                    => array('rgxp'=>'time', 'doNotCopy'=>true, 'tl_class'=>'w50'),
+-                      'sql'                     => "int(10) unsigned NOT NULL default '0'"
++                      'sql'                     => "int(10) NOT NULL default '0'"
+               ),
+               'subheadline' => array
+               (



Home | Main Index | Thread Index | Old Index