Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-Cookie-Baker for 
openSUSE:Factory checked in at 2026-11-18 18:32:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Cookie-Baker (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Cookie-Baker.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Cookie-Baker"

Wed Nov 18 18:32:13 2026 rev:9 rq:1398396 version:0.140.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Cookie-Baker/perl-Cookie-Baker.changes      
2024-03-09 20:56:15.434042937 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Cookie-Baker.new.1251/perl-Cookie-Baker.changes
    2026-11-18 18:34:06.671365283 +0100
@@ -1,0 +2,11 @@
+Thu Nov 12 13:46:36 UTC 2026 - Tina Müller <[email protected]>
+
+- updated to 0.140.0 (0.14)
+   see /usr/share/doc/packages/perl-Cookie-Baker/Changes
+
+  0.14 2026-11-12T09:32:20Z
+     - fix use of hex #23
+  0.13 2026-11-08T07:54:40Z
+     - add validations for some values
+
+-------------------------------------------------------------------

Old:
----
  Cookie-Baker-0.12.tar.gz

New:
----
  Cookie-Baker-0.14.tar.gz
  README.md
  _scmsync.obsinfo
  build.specials.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Cookie-Baker.spec ++++++
--- /var/tmp/diff_new_pack.cyyvwh/_old  2026-11-18 18:34:07.322392864 +0100
+++ /var/tmp/diff_new_pack.cyyvwh/_new  2026-11-18 18:34:07.323392906 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Cookie-Baker
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,19 +18,21 @@
 
 %define cpan_name Cookie-Baker
 Name:           perl-Cookie-Baker
-Version:        0.120.0
+Version:        0.140.0
 Release:        0
-%define cpan_version 0.12
+# 0.14 -> normalize -> 0.140.0
+%define cpan_version 0.14
 License:        Artistic-1.0 OR GPL-1.0-or-later
 Summary:        Cookie string generator / parser
 URL:            https://metacpan.org/release/%{cpan_name}
 Source0:        
https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/%{cpan_name}-%{cpan_version}.tar.gz
 Source1:        cpanspec.yml
+Source100:      README.md
 BuildArch:      noarch
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(Module::Build)
-BuildRequires:  perl(Module::Build::Tiny) >= 0.035
+BuildRequires:  perl(Module::Build::Tiny) >= 0.35
 BuildRequires:  perl(Test::More) >= 0.98
 BuildRequires:  perl(Test::Time)
 BuildRequires:  perl(URI::Escape)
@@ -43,7 +45,7 @@
 Cookie::Baker provides simple cookie string generator and parser.
 
 %prep
-%autosetup  -n %{cpan_name}-%{cpan_version}
+%autosetup -n %{cpan_name}-%{cpan_version} -p1
 
 %build
 perl Build.PL --installdirs=vendor

++++++ Cookie-Baker-0.12.tar.gz -> Cookie-Baker-0.14.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.12/Changes 
new/Cookie-Baker-0.14/Changes
--- old/Cookie-Baker-0.12/Changes       2024-01-05 09:28:00.000000000 +0100
+++ new/Cookie-Baker-0.14/Changes       2026-11-12 10:32:20.000000000 +0100
@@ -1,5 +1,13 @@
 Revision history for Perl extension Cookie-Baker
 
+0.14 2026-11-12T09:32:20Z
+
+   - fix use of hex #23
+
+0.13 2026-11-08T07:54:40Z
+
+   - add validations for some values
+
 0.12 2024-01-05T08:27:56Z
 
    - Support CHIPS #20
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.12/META.json 
new/Cookie-Baker-0.14/META.json
--- old/Cookie-Baker-0.12/META.json     2024-01-05 09:28:00.000000000 +0100
+++ new/Cookie-Baker-0.14/META.json     2026-11-12 10:32:20.000000000 +0100
@@ -4,7 +4,7 @@
       "Masahiro Nagano <[email protected]>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Minilla/v3.1.23",
+   "generated_by" : "Minilla/v3.3.2",
    "license" : [
       "perl_5"
    ],
@@ -60,7 +60,7 @@
    "provides" : {
       "Cookie::Baker" : {
          "file" : "lib/Cookie/Baker.pm",
-         "version" : "0.12"
+         "version" : "0.14"
       }
    },
    "release_status" : "stable",
@@ -75,8 +75,9 @@
          "web" : "https://github.com/kazeburo/Cookie-Baker";
       }
    },
-   "version" : "0.12",
+   "version" : "0.14",
    "x_contributors" : [
+      "Adriaan Dens <[email protected]>",
       "David Romano <[email protected]>",
       "Ichinose Shogo <[email protected]>",
       "Olaf Alders <[email protected]>",
@@ -84,6 +85,6 @@
       "kwry <[email protected]>",
       "yoshikazusawa <[email protected]>"
    ],
-   "x_serialization_backend" : "JSON::PP version 4.07",
+   "x_serialization_backend" : "JSON::PP version 4.16",
    "x_static_install" : 1
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.12/META.yml 
new/Cookie-Baker-0.14/META.yml
--- old/Cookie-Baker-0.12/META.yml      2024-01-05 09:28:00.000000000 +0100
+++ new/Cookie-Baker-0.14/META.yml      2026-11-12 10:32:20.000000000 +0100
@@ -8,7 +8,7 @@
 configure_requires:
   Module::Build::Tiny: '0.035'
 dynamic_config: 0
-generated_by: 'Minilla/v3.1.23, CPAN::Meta::Converter version 2.150010'
+generated_by: 'Minilla/v3.3.2, CPAN::Meta::Converter version 2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -27,7 +27,7 @@
 provides:
   Cookie::Baker:
     file: lib/Cookie/Baker.pm
-    version: '0.12'
+    version: '0.14'
 requires:
   Exporter: '0'
   URI::Escape: '0'
@@ -36,13 +36,14 @@
   bugtracker: https://github.com/kazeburo/Cookie-Baker/issues
   homepage: https://github.com/kazeburo/Cookie-Baker
   repository: https://github.com/kazeburo/Cookie-Baker.git
-version: '0.12'
+version: '0.14'
 x_contributors:
+  - 'Adriaan Dens <[email protected]>'
   - 'David Romano <[email protected]>'
   - 'Ichinose Shogo <[email protected]>'
   - 'Olaf Alders <[email protected]>'
   - 'Shoichi Kaji <[email protected]>'
   - 'kwry <[email protected]>'
   - 'yoshikazusawa <[email protected]>'
-x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.020'
 x_static_install: 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.12/README.md 
new/Cookie-Baker-0.14/README.md
--- old/Cookie-Baker-0.12/README.md     2024-01-05 09:28:00.000000000 +0100
+++ new/Cookie-Baker-0.14/README.md     2026-11-12 10:32:20.000000000 +0100
@@ -38,6 +38,8 @@
     can contain keys such as `value`, `domain`, `expires`, `path`, `httponly`, 
`secure`,
     `max-age`, `samesite`.
 
+    domain, path and max-age should be validated to not include \`;\` and 
other special characters.
+
     - value
 
         Cookie's value.
@@ -55,7 +57,7 @@
 
         Cookie's expires date time. Several formats are supported:
 
-            expires => time + 24 * 60 * 60 # epoch time
+            expires => time + 24 * 60 * 60 # epoch time (without subseconds)
             expires => 'Wed, 03-Nov-2010 20:54:16 GMT'
             expires => '+30s' # 30 seconds from now
             expires => '+10m' # ten minutes from now
@@ -94,6 +96,12 @@
         my $cookies_hashref = crush_cookie($headers->header('Cookie'));
         my $cookie_value = $cookies_hashref->{cookie_name}
 
+    If multiple cookies have the same name, the first one is used.
+
+    If you want to retrieve uri\_decoded cookie name, you can pass the second 
argument as true.
+
+        my $cookies_hashref = crush_cookie($headers->header('Cookie'), 1); # 
no uri_decoded cookie names
+
 # SEE ALSO
 
 CPAN already has many cookie related modules. But there is no simple cookie 
string generator and parser module.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.12/lib/Cookie/Baker.pm 
new/Cookie-Baker-0.14/lib/Cookie/Baker.pm
--- old/Cookie-Baker-0.12/lib/Cookie/Baker.pm   2024-01-05 09:28:00.000000000 
+0100
+++ new/Cookie-Baker-0.14/lib/Cookie/Baker.pm   2026-11-12 10:32:20.000000000 
+0100
@@ -7,7 +7,7 @@
 use URI::Escape;
 
 BEGIN {
-    our $VERSION = "0.12";
+    our $VERSION = "0.14";
     our @EXPORT = qw/bake_cookie crush_cookie/;
     my $use_pp = $ENV{COOKIE_BAKER_PP};
     if (!$use_pp) {
@@ -28,6 +28,18 @@
     }
 }
 
+
+sub valid_path {
+    my $path = shift;
+    for my $s (split //, $path) {
+        my $hex = ord($s);
+        return 0 if 0x20 > $hex;
+        return 0 if $hex >= 0x7f;
+        return 0 if $hex == 0x3b; # 0x3b is ';'
+    }
+    return 1;
+}
+
 sub bake_cookie {
     my ($name,$val) = @_;
 
@@ -38,13 +50,28 @@
         $args{samesite} = 'none';
         $args{secure} = 1;
     }
+
+    # validation for domain, path and max-age
+    if (exists $args{domain} && $args{domain} !~ /^[a-zA-Z0-9\.\-]+$/) {
+        warn "Invalid domain: $args{domain}";
+        delete $args{domain};
+    }
+    if (exists $args{path} && !valid_path($args{path})) {
+        warn "Invalid path: $args{path}";
+        delete $args{path};
+    }
+    if (exists $args{"max-age"} && $args{"max-age"} !~ /^\d+$/) {
+        warn "Invalid max-age: " . $args{"max-age"};
+        delete $args{"max-age"};
+    }
+
     $name = URI::Escape::uri_escape($name) if $name =~ m![^a-zA-Z\-\._~]!;
     my $cookie = "$name=" . URI::Escape::uri_escape($args{value}) . '; ';
     $cookie .= 'domain=' . $args{domain} . '; '  if $args{domain};
     $cookie .= 'path='. $args{path} . '; '       if $args{path};
     $cookie .= 'expires=' . _date($args{expires}) . '; ' if exists 
$args{expires} && defined $args{expires};
     $cookie .= 'max-age=' . $args{"max-age"} . '; ' if exists $args{"max-age"};
-    if (exists $args{samesite} && $args{samesite} =~ m/^(?:lax|strict|none)/i) 
{
+    if (exists $args{samesite} && $args{samesite} =~ 
m/\A(?:lax|strict|none)\Z/i) {
         $cookie .= 'SameSite=' . ucfirst(lc($args{samesite})) . '; ';
         # secure flag must be set when SameSite=None
         $args{secure} = 1 if $cookie =~ m/SameSite=None; /;
@@ -97,6 +124,7 @@
 
 sub pp_crush_cookie {
     my $cookie_string = shift;
+    my $raw_key = shift;
     return {} unless $cookie_string;
     my %results;
     my @pairs = grep m/=/, split /; ?/, $cookie_string;
@@ -106,7 +134,9 @@
 
         my ($key, $value) = split( "=", $pair, 2 );
 
-        $key = URI::Escape::uri_unescape($key);
+        if (!$raw_key) {
+            $key = URI::Escape::uri_unescape($key);
+        }
 
         # Values can be quoted
         $value = "" unless defined $value;
@@ -166,6 +196,7 @@
 can contain keys such as C<value>, C<domain>, C<expires>, C<path>, 
C<httponly>, C<secure>,
 C<max-age>, C<samesite>.
 
+domain, path and max-age should be validated to not include `;` and other 
special characters.
 
 =over 4
 
@@ -186,7 +217,7 @@
 
 Cookie's expires date time. Several formats are supported:
 
-  expires => time + 24 * 60 * 60 # epoch time
+  expires => time + 24 * 60 * 60 # epoch time (without subseconds)
   expires => 'Wed, 03-Nov-2010 20:54:16 GMT'
   expires => '+30s' # 30 seconds from now
   expires => '+10m' # ten minutes from now
@@ -227,6 +258,12 @@
     my $cookies_hashref = crush_cookie($headers->header('Cookie'));
     my $cookie_value = $cookies_hashref->{cookie_name}
 
+If multiple cookies have the same name, the first one is used.
+
+If you want to retrieve uri_decoded cookie name, you can pass the second 
argument as true.
+
+    my $cookies_hashref = crush_cookie($headers->header('Cookie'), 1); # no 
uri_decoded cookie names
+
 =back
 
 =head1 SEE ALSO
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.12/t/01_bake.t 
new/Cookie-Baker-0.14/t/01_bake.t
--- old/Cookie-Baker-0.12/t/01_bake.t   2024-01-05 09:28:00.000000000 +0100
+++ new/Cookie-Baker-0.14/t/01_bake.t   2026-11-12 10:32:20.000000000 +0100
@@ -12,6 +12,9 @@
     [ 'foo', { value => 'foo bar baz' }, 'foo=foo%20bar%20baz'],
     [ 'foo', { value => 'val',expires => undef }, 'foo=val'],
     [ 'foo', { value => 'val',path => '/' }, 'foo=val; path=/'],
+    [ 'foo', { value => 'val2',path => '/;a' }, 'foo=val2'],
+    [ 'foo', { value => 'val',domain => 'example.com' }, 'foo=val; 
domain=example.com'],
+    [ 'foo', { value => 'val',domain => 'invalid domain' }, 'foo=val'],
     [ 'foo', { value => 'val',path => '/', secure => 0, httponly => 0, 
partitioned => 0 }, 'foo=val; path=/'],
     [ 'foo', { value => 'val',path => '/', secure => 1, httponly => 0, 
partitioned => 0 }, 'foo=val; path=/; secure'],
     [ 'foo', { value => 'val',path => '/', secure => 0, httponly => 1, 
partitioned => 0 }, 'foo=val; path=/; HttpOnly'],
@@ -31,12 +34,15 @@
     [ 'foo', { value => 'val',expires => 'foo' }, 'foo=val; expires=foo'],
     [ 'foo', { value => 'val','max-age' => '1000' }, 'foo=val; max-age=1000'],
     [ 'foo', { value => 'val','max-age' => '0' }, 'foo=val; max-age=0'],
+    [ 'foo', { value => 'val','max-age' => 'a' }, 'foo=val'],
     [ 'foo', { value => 'val', samesite => 'lax' }, 'foo=val; SameSite=Lax'],
     [ 'foo', { value => 'val', samesite => 'strict' }, 'foo=val; 
SameSite=Strict'],
     [ 'foo', { value => 'val', samesite => 'none' }, 'foo=val; SameSite=None; 
secure'],
     [ 'foo', { value => 'val', samesite => 'none', secure => 0 }, 'foo=val; 
SameSite=None; secure'],
     [ 'foo', { value => 'val', samesite => 'invalid value' }, 'foo=val'],
+    [ 'foo', { value => 'val', samesite => 'lax42' }, 'foo=val'],
     [ 'foo', { value => 'val', samesite => 'strict', partitioned => 1 }, 
'foo=val; SameSite=None; secure; Partitioned'],
+    [ 'foo', { value => 'bar', path => '/cgi-bin', domain => '.example.com' }, 
'foo=bar; domain=.example.com; path=/cgi-bin'],
 );
 
 for my $test (@tests) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Cookie-Baker-0.12/t/02_crush.t 
new/Cookie-Baker-0.14/t/02_crush.t
--- old/Cookie-Baker-0.12/t/02_crush.t  2024-01-05 09:28:00.000000000 +0100
+++ new/Cookie-Baker-0.14/t/02_crush.t  2026-11-12 10:32:20.000000000 +0100
@@ -17,6 +17,7 @@
     [ 'Foo=Bar; Bar=Baz;  XXX=Foo%20Bar   ; YYY=; ', { Foo => 'Bar', Bar => 
'Baz', XXX => 'Foo Bar',YYY=>"" }],
     [ "Foo=Bar; $longkey=Bar", { Foo => 'Bar', $longkey => 'Bar'}],
     [ "Foo=Bar; $longkey=Bar; Bar=Baz", { Foo => 'Bar', $longkey => 'Bar', 
'Bar'=>'Baz'}],
+    [ 'foo=bar; domain=.example.com; path=/cgi-bin', { foo => 'bar', path => 
'/cgi-bin', domain => '.example.com' }],
 
     # from https://github.com/plack/Plack/pull/564/files
     [ 'ZZZ="spaced out"; XXX=Foo', { ZZZ => 'spaced out', XXX => 'Foo' }],
@@ -30,6 +31,9 @@
     # disallow "," as a delimiter
     [ 'Foo=Bar; Bar=Baz,  XXX=Foo%20Bar   ; YYY=; ', { Foo => 'Bar', Bar => 
'Baz,  XXX=Foo Bar',YYY=>"" }], 
 
+    # raw key test
+    [ '%5F%5FFoo=Bar; ', { "__Foo" => 'Bar' }],
+
     [ '', {} ],
     [ undef, {} ],
 );
@@ -39,5 +43,16 @@
     is_deeply( Cookie::Baker::pp_crush_cookie($test->[0]), $test->[1] );
 }
 
+my @raw_key_tests = (
+    [ 'Foo=Bar; Bar=Baz; XXX=Foo%20Bar; YYY=0; YYY=3', { Foo => 'Bar', Bar => 
'Baz', XXX => 'Foo Bar', YYY => 0 }],
+    [ 'Foo=Bar; Bar=Baz; XXX=Foo%20Bar; YYY=0; YYY=3;', { Foo => 'Bar', Bar => 
'Baz', XXX => 'Foo Bar', YYY => 0 }],
+    [ '%5F%5FFoo=Bar; ', { "%5F%5FFoo" => 'Bar' }],
+);
+
+for my $test (@raw_key_tests) {
+    is_deeply( crush_cookie($test->[0], 1), $test->[1] );
+    is_deeply( Cookie::Baker::pp_crush_cookie($test->[0], 1), $test->[1] );
+}
+
 done_testing;
 

++++++ README.md ++++++

## Build Results

Current state of perl in openSUSE:Factory is

![Factory build 
results](https://br.opensuse.org/status/openSUSE:Factory/perl-Cookie-Baker/standard)

The current state of perl in the devel project build (devel:languages:perl)

![Devel project build 
results](https://br.opensuse.org/status/devel:languages:perl/perl-Cookie-Baker)



++++++ _scmsync.obsinfo ++++++
mtime: 1794491196
commit: 6fafe95170ef279fb6ef415f2d8a9084feede2ef5bb9068eb142480ec7cb08c1
url: https://src.opensuse.org/perl/perl-Cookie-Baker
revision: 6fafe95170ef279fb6ef415f2d8a9084feede2ef5bb9068eb142480ec7cb08c1
projectscmsync: https://src.opensuse.org/perl/_ObsPrj

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-11-12 14:46:36.000000000 +0100
@@ -0,0 +1 @@
+.osc

Reply via email to