From 1e1034124247c1469f01535e2709c9499f5f58bf Mon Sep 17 00:00:00 2001 From: Shaun Amott Date: Thu, 21 Jul 2011 03:06:06 +0000 Subject: [PATCH] Another fix: print -> printf (header wasn't being output correctly) --- en/cgi/query-pr.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/cgi/query-pr.cgi b/en/cgi/query-pr.cgi index 6dc6267954..fa32bf56fa 100755 --- a/en/cgi/query-pr.cgi +++ b/en/cgi/query-pr.cgi @@ -26,7 +26,7 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD: www/en/cgi/query-pr.cgi,v 1.73 2011/07/21 02:09:02 shaun Exp $ +# $FreeBSD: www/en/cgi/query-pr.cgi,v 1.74 2011/07/21 02:44:20 shaun Exp $ # # Useful PRs for testing: # @@ -186,7 +186,7 @@ sub main defined $patch or ErrorExit(EXIT_NOPATCH); - print 'Content-type: %s; charset=UTF-8'."\r\n", + printf 'Content-type: %s; charset=UTF-8'."\r\n", ($patch->isbinary ? 'application/octet-stream' : 'text/plain'); printf 'Content-Length: "%s"'."\r\n"