Change x-httpd-php to application/x-httpd-php
authorEmmanuel Lacour <elacour@home-dn.net>
Wed, 17 Oct 2007 14:34:51 +0000 (14:34 +0000)
committerEmmanuel Lacour <elacour@home-dn.net>
Wed, 17 Oct 2007 14:34:51 +0000 (14:34 +0000)
debian/changelog
debian/conf/suphp.conf
debian/patches/01_debian.dpatch

index 8ab7527..7e1a720 100644 (file)
@@ -2,8 +2,9 @@ suphp (0.6.2-2) unstable; urgency=low
 
   * remove apache 1.x package (closes: #429079)
   * debian/rules, debian/compat, debian/control: lintian cleanup
-  * debian/conf/suphp.conf: replaced AddHandler by AddType to avoid double
-    extensions like ".php.jpg" (closes: #416424)
+  * debian/conf/suphp.conf, debian/patches/01_debian.dpatch: replaced
+    AddHandler by AddType and x-httpd-php by application/x-httpd-php to get
+    the same behavior as mod php with filenames extensions (closes: #416424)
 
  -- Emmanuel Lacour <elacour@home-dn.net>  Sun, 14 Oct 2007 19:42:30 +0200
 
index 3616074..9639f54 100644 (file)
@@ -1,6 +1,6 @@
 <IfModule mod_suphp.c>
-       AddType x-httpd-php .php .php3 .php4 .php5 .phtml
-       suPHP_AddHandler x-httpd-php
+       AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
+       suPHP_AddHandler application/x-httpd-php
        suPHP_Engine on
 # # Use a specific php config file (a dir which contains a php.ini file)
 #      suPHP_ConfigPath /etc/php4/cgi/suphp/
index ec7a768..d946d34 100644 (file)
@@ -31,7 +31,7 @@
  [handlers]
  ;Handler for php-scripts
 -x-httpd-php=php:/usr/bin/php
-+x-httpd-php=php:/usr/bin/php-cgi
++application/x-httpd-php=php:/usr/bin/php-cgi
  
  ;Handler for CGI-scripts
  x-suphp-cgi=execute:!self