svn commit: r533389 - in head/net-im/prosody: . files

Tobias C. Berner tcberner at FreeBSD.org
Wed Apr 29 19:09:53 UTC 2020


Author: tcberner
Date: Wed Apr 29 19:09:53 2020
New Revision: 533389
URL: https://svnweb.freebsd.org/changeset/ports/533389

Log:
  net-im/prosody: Fix http files download
  
  net-im/prosody: fix ETag creation
  
  * Include patch from upstream to fix crash in mod_http_files
    when encountering large device- or inode-numbers [1]
  
  [1] https://issues.prosody.im/1498
  
  PR:		244618
  Submitted by:	Thomas Morper <thomas at beingboiled.info> (maintainer)
  Reported by:	rozhuk.im at gmail.com

Added:
  head/net-im/prosody/files/patch-plugins_mod__http__files.lua   (contents, props changed)
Modified:
  head/net-im/prosody/Makefile

Modified: head/net-im/prosody/Makefile
==============================================================================
--- head/net-im/prosody/Makefile	Wed Apr 29 19:09:39 2020	(r533388)
+++ head/net-im/prosody/Makefile	Wed Apr 29 19:09:53 2020	(r533389)
@@ -3,6 +3,7 @@
 
 PORTNAME=	prosody
 PORTVERSION=	0.11.5
+PORTREVISION=	1
 CATEGORIES=	net-im
 MASTER_SITES=	https://prosody.im/downloads/source/
 

Added: head/net-im/prosody/files/patch-plugins_mod__http__files.lua
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/prosody/files/patch-plugins_mod__http__files.lua	Wed Apr 29 19:09:53 2020	(r533389)
@@ -0,0 +1,11 @@
+--- plugins/mod_http_files.lua.orig	2020-01-19 15:50:32 UTC
++++ plugins/mod_http_files.lua
+@@ -112,7 +112,7 @@ function serve(opts)
+ 		local last_modified = os_date('!%a, %d %b %Y %H:%M:%S GMT', attr.modification);
+ 		response_headers.last_modified = last_modified;
+ 
+-		local etag = ('"%02x-%x-%x-%x"'):format(attr.dev or 0, attr.ino or 0, attr.size or 0, attr.modification or 0);
++		local etag = ('"%x-%x-%x"'):format(attr.change or 0, attr.size or 0, attr.modification or 0);
+ 		response_headers.etag = etag;
+ 
+ 		local if_none_match = request_headers.if_none_match


More information about the svn-ports-head mailing list