Package: sks
Version: 1.1.0-4
Severity: important
Tags: patch

Nowadays sks apparently has a built in list of file endings and the
content-type it's supposed to be sending with each of those files in
its built-in webservers.

Ideally this list would use /etc/mime.types and/or fallback to
content-type application/octet-stream instead of erroring out.

For now, and ideally for lenny, we would at least add text/html to the
list.

This patch also allows - to appear in filenames.


diff -u sks-1.1.0/debian/changelog sks-1.1.0/debian/changelog
--- sks-1.1.0/debian/changelog
+++ sks-1.1.0/debian/changelog
@@ -1,3 +1,10 @@
+sks (1.1.0-4.1) unstable; urgency=low
+
+  * Teach dbserver about content-type for .html.
+  * Allow - in filenames for webserver.
+
+ -- Peter Palfrader <[EMAIL PROTECTED]>  Sat, 08 Nov 2008 16:00:06 +0000
+
 sks (1.1.0-4) unstable; urgency=low
 
   * fix cron.daily to call correct db*_archive and print unwanted messages
only in patch2:
unchanged:
--- sks-1.1.0.orig/debian/patches/509-content-types
+++ sks-1.1.0/debian/patches/509-content-types
@@ -0,0 +1,11 @@
+diff -ruN sks-1.1.0-old/dbserver.ml sks-1.1.0/dbserver.ml
+--- sks-1.1.0-old/dbserver.ml  2008-11-08 15:58:54.803687000 +0000
++++ sks-1.1.0/dbserver.ml      2008-11-08 15:59:37.333809983 +0000
+@@ -370,6 +370,7 @@
+       ".gif", "image/gif";
+       ".ico", "image/x-icon";
+       ".png", "image/png";
++      ".html", "text/html";
+       ".txt", "text/plain"; 
+     ]
+ 
only in patch2:
unchanged:
--- sks-1.1.0.orig/debian/patches/510-allowed-chars
+++ sks-1.1.0/debian/patches/510-allowed-chars
@@ -0,0 +1,12 @@
+diff -ruN sks-1.1.0-old/dbserver.ml sks-1.1.0/dbserver.ml
+--- sks-1.1.0-old/dbserver.ml  2008-11-08 16:12:22.376045000 +0000
++++ sks-1.1.0/dbserver.ml      2008-11-08 16:12:59.014429214 +0000
+@@ -348,7 +348,7 @@
+ 
+   let is_safe char = 
+     (char >= 'A' && char <= 'Z') || (char >= 'a' && char <= 'z') || 
+-    (char >= '0' && char <= '9') || (char = '.')
++    (char >= '0' && char <= '9') || (char = '.') || (char = '-')
+     
+ 
+   let verify_web_fname fname = 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to