Debian

Available patches from Ubuntu

To see Ubuntu differences wrt. to Debian, write down a grep-dctrl query identifying the packages you're interested in:
grep-dctrl -n -sPackage Sources.Debian
(e.g. -FPackage linux-ntfs or linux-ntfs)

Modified packages are listed below:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: phamm

phamm (0.6.5-1ubuntu1) artful; urgency=medium * Merge with Debian unstable. Remaining changes: - Fix Apache configuration to use mod_php7.c, not mod_php5.c. - debian/patches/php7_has_removed_ereg.patch: PHP7.0 has removed ereg as an API. Closes LP #1570968. -- Nishanth Aravamudan <nish.aravamudan@canonical.com> Mon, 29 May 2017 16:46:56 -0700

Modifications :
  1. Download patch views/helpers.php

    --- 0.6.5-1/views/helpers.php 2016-01-06 09:15:57.000000000 +0000 +++ 0.6.5-1ubuntu1/views/helpers.php 2017-05-30 18:14:57.000000000 +0000 @@ -1437,7 +1437,7 @@ function refresh ($url, $force_meta = fa $PROTOCOL = 'http'; // HTTP/1.1 requires an absolute URI - $uri = ereg ( '^http', $url ) ? $url : "$PROTOCOL://". + $uri = preg_match ( '/^http/', $url ) ? $url : "$PROTOCOL://". $_SERVER['HTTP_HOST']; // Server Root Check
  2. Download patch debian/control

    --- 0.6.5-1/debian/control 2016-05-31 14:57:00.000000000 +0000 +++ 0.6.5-1ubuntu1/debian/control 2017-05-29 23:46:56.000000000 +0000 @@ -1,7 +1,8 @@ Source: phamm Section: web Priority: extra -Maintainer: Phamm Team <team@phamm.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Phamm Team <team@phamm.org> Uploaders: Alessandro De Zorzi <lota@nonlontano.it>, Mirko Grava <ops@klez.it> Build-Depends: debhelper (>= 5), po-debconf, perl, dh-apache2 | apache2-dev Standards-Version: 3.9.5
  3. Download patch .pc/php7_has_removed_ereg.patch/views/helpers.php
  4. Download patch .pc/applied-patches

    --- 0.6.5-1/.pc/applied-patches 2017-05-30 18:14:56.856285675 +0000 +++ 0.6.5-1ubuntu1/.pc/applied-patches 2017-05-30 18:14:57.100292404 +0000 @@ -0,0 +1 @@ +php7_has_removed_ereg.patch
  5. Download patch controllers/helpers.php

    --- 0.6.5-1/controllers/helpers.php 2016-01-06 09:15:57.000000000 +0000 +++ 0.6.5-1ubuntu1/controllers/helpers.php 2017-05-30 18:14:57.000000000 +0000 @@ -290,7 +290,7 @@ function check_syntax ($type,$arg,$lengt // IP Address if ($type == 'ip') { - if (!ereg ("^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$", $arg)) + if (!preg_match ("/^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/", $arg)) { return FALSE; } @@ -313,7 +313,7 @@ function check_syntax ($type,$arg,$lengt // DOMAIN elseif ($type == 'domain') { - if (!eregi("^([0-9a-z][0-9a-z-]+\.)+[a-z]{2,7}$", $arg)) + if (!preg_match ("/^([0-9a-z][0-9a-z-]+\.)+[a-z]{2,7}$/i", $arg)) { return FALSE; } @@ -327,7 +327,7 @@ function check_syntax ($type,$arg,$lengt // ALIAS and ACCOUNT elseif ($type == 'account') { - if (!eregi("^[\._a-z0-9-]+$", $arg)) + if (!preg_match ("/^[\._a-z0-9-]+$/i", $arg)) { return FALSE; } @@ -341,7 +341,7 @@ function check_syntax ($type,$arg,$lengt // Password elseif ($type == 'password') { - if (!eregi("^[\._a-z0-9-]+$", $arg)) + if (!preg_match ("/^[\._a-z0-9-]+$/i", $arg)) return false; return true; @@ -350,7 +350,7 @@ function check_syntax ($type,$arg,$lengt // Email elseif ($type == 'email') { - if (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,4}$", $arg)) + if (!preg_match ("/^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,4}$/i", $arg)) return false; return true;
  6. Download patch debian/patches/series

    --- 0.6.5-1/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ 0.6.5-1ubuntu1/debian/patches/series 2017-05-29 23:45:59.000000000 +0000 @@ -0,0 +1 @@ +php7_has_removed_ereg.patch
  7. Download patch .pc/php7_has_removed_ereg.patch/controllers/helpers.php
  8. Download patch debian/patches/php7_has_removed_ereg.patch

    --- 0.6.5-1/debian/patches/php7_has_removed_ereg.patch 1970-01-01 00:00:00.000000000 +0000 +++ 0.6.5-1ubuntu1/debian/patches/php7_has_removed_ereg.patch 2017-05-29 23:46:08.000000000 +0000 @@ -0,0 +1,62 @@ +Description: PHP7.0 has removed ereg as an API. +Author: Nishanth Aravamudan <nish.aravamudan@canonical.com> +Bug-Ubuntu: https://launchpad.net/bugs/1570968 + +--- a/controllers/helpers.php ++++ b/controllers/helpers.php +@@ -290,7 +290,7 @@ + // IP Address + if ($type == 'ip') + { +- if (!ereg ("^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$", $arg)) ++ if (!preg_match ("/^([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/", $arg)) + { + return FALSE; + } +@@ -313,7 +313,7 @@ + // DOMAIN + elseif ($type == 'domain') + { +- if (!eregi("^([0-9a-z][0-9a-z-]+\.)+[a-z]{2,7}$", $arg)) ++ if (!preg_match ("/^([0-9a-z][0-9a-z-]+\.)+[a-z]{2,7}$/i", $arg)) + { + return FALSE; + } +@@ -327,7 +327,7 @@ + // ALIAS and ACCOUNT + elseif ($type == 'account') + { +- if (!eregi("^[\._a-z0-9-]+$", $arg)) ++ if (!preg_match ("/^[\._a-z0-9-]+$/i", $arg)) + { + return FALSE; + } +@@ -341,7 +341,7 @@ + // Password + elseif ($type == 'password') + { +- if (!eregi("^[\._a-z0-9-]+$", $arg)) ++ if (!preg_match ("/^[\._a-z0-9-]+$/i", $arg)) + return false; + + return true; +@@ -350,7 +350,7 @@ + // Email + elseif ($type == 'email') + { +- if (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,4}$", $arg)) ++ if (!preg_match ("/^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,4}$/i", $arg)) + return false; + + return true; +--- a/views/helpers.php ++++ b/views/helpers.php +@@ -1437,7 +1437,7 @@ + $PROTOCOL = 'http'; + + // HTTP/1.1 requires an absolute URI +- $uri = ereg ( '^http', $url ) ? $url : "$PROTOCOL://". ++ $uri = preg_match ( '/^http/', $url ) ? $url : "$PROTOCOL://". + $_SERVER['HTTP_HOST']; + + // Server Root Check
  9. Download patch debian/conf/phamm.conf

    --- 0.6.5-1/debian/conf/phamm.conf 2014-07-15 05:38:41.000000000 +0000 +++ 0.6.5-1ubuntu1/debian/conf/phamm.conf 2017-05-29 23:45:59.000000000 +0000 @@ -23,7 +23,7 @@ <IfModule mod_mime.c> - <IfModule mod_php5.c> + <IfModule mod_php7.c> AddType application/x-httpd-php .php php_flag magic_quotes_gpc Off @@ -32,12 +32,12 @@ php_value include_path . </IfModule> - <IfModule !mod_php5.c> + <IfModule !mod_php7.c> <IfModule mod_actions.c> <IfModule mod_cgi.c> AddType application/x-httpd-php .php - Action application/x-httpd-php /cgi-bin/php5 + Action application/x-httpd-php /cgi-bin/php </IfModule> </IfModule> </IfModule>
  1. phamm