From: Elan Ruusamäe Date: Fri, 28 Apr 2023 21:54:42 +0000 (+0300) Subject: Allow lowercase authorization header X-Git-Tag: auto/th/dokuwiki-20230404a-1~1^2~1 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=57eb0ff5b9a91c1155839ff7ce3b0755c0de08c8;hp=4c421dd38f366980d122a424f9de442f2dec7c6c;p=packages%2Fdokuwiki.git Allow lowercase authorization header --- diff --git a/dokuwiki.spec b/dokuwiki.spec index 1521337..737444a 100644 --- a/dokuwiki.spec +++ b/dokuwiki.spec @@ -44,6 +44,7 @@ Patch24: more-buttons.patch Patch27: iconsizes-dump.patch Patch28: https://github.com/dokuwiki/dokuwiki/pull/2432.diff # Patch28-md5: 5afbddfdd2b5c3a72377ead41da555af +Patch29: tokenauth-lowercase-header.patch URL: https://www.dokuwiki.org/ BuildRequires: fslint BuildRequires: rpm-php-pearprov >= 4.4.2-11 @@ -137,6 +138,7 @@ echo '====== PlayGround ======' > data/pages/playground/playground.txt #%patch24 -p1 %patch27 -p1 %patch28 -p1 +%patch29 -p1 %patch66 -p1 # package as basenames, upgrade overwrite protected with .rpmnew diff --git a/tokenauth-lowercase-header.patch b/tokenauth-lowercase-header.patch new file mode 100644 index 0000000..b835e2b --- /dev/null +++ b/tokenauth-lowercase-header.patch @@ -0,0 +1,10 @@ +--- dokuwiki-2023-04-04/inc/auth.php~ 2023-04-28 23:43:03.000000000 +0300 ++++ dokuwiki-2023-04-04/inc/auth.php 2023-04-29 00:53:43.324078441 +0300 +@@ -177,6 +177,7 @@ + // Authorization headers are not in $_SERVER for mod_php + $headers = apache_request_headers(); + if(isset($headers['Authorization'])) $header = $headers['Authorization']; ++ if(!$header && isset($headers['authorization'])) $header = $headers['authorization']; + } else { + $header = $INPUT->server->str('HTTP_AUTHORIZATION'); + }