[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r10383 - /man-cgi/man.cgi



Author: jfs
Date: Tue Mar  4 20:20:01 2014
New Revision: 10383

URL: http://svn.debian.org/wsvn/?sc=1&rev=10383
Log:
Treat locale 'C' as english, this prevents errors in the script when this locale is used in redirections (not from the HTML form as this lcoale is not available there)

Modified:
    man-cgi/man.cgi

Modified: man-cgi/man.cgi
URL: http://svn.debian.org/wsvn/man-cgi/man.cgi?rev=10383&op=diff
==============================================================================
--- man-cgi/man.cgi	(original)
+++ man-cgi/man.cgi	Tue Mar  4 20:20:01 2014
@@ -322,7 +322,7 @@
     $alttitle = $form{'title'};
     $manpath = $form{'manpath'};
     $locale = $form{'locale'};
-    $locale = '' if $locale eq 'en'; # Default locale
+    $locale = '' if $locale eq 'en' or $locale eq 'C'; # Default locale
     $encoding = '' ; # No encoding
     if (!$manpath) {
 	$manpath = $manPathDefault;


Reply to: