[SPAM] vqadmin chrome patch
Eric Shubert <[email protected]> Fri, 03 Aug 2012 20:07:08 -0700
| Newsgroups | gmane.mail.vpopmail |
|---|---|
| Organization | Eric Shubert & Associates |
| Message-ID | <[email protected]> |
We just completed upgrading QMT to vpopmail-5.4.33 along with qmailadmin-1.2.16 and vqadmin-2.3.7. So far so good. We did notice though that vqadmin had a problem with the language which chrome was requesting. We borrowed a little code from qmailadmin to fix it, and the attached file contains the patch. Thanks for the great work Matt. I hope to get to vpopmail-5.5 with ldap before too long. What's the status of that as you remember it? I know it's been a while. -- -Eric 'shubes' !DSPAM:501c91ed34217730527293!
vqadmin.chrome.patch
(text/x-patch, 607 B)
--- lang-old.c 2012-08-04 01:09:12.788299596 +0000
+++ lang.c 2012-08-04 02:02:47.791755439 +0000
@@ -25,6 +25,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
+
+#include <vpopmail.h>
+
#include "global.h"
#include "vauth.h"
@@ -70,6 +73,10 @@
char tmpfile[MAX_TMPBUF];
struct stat mystat;
+ /* Lowercase the language name to fix a bug where chrome users can't access
+ * the page. */
+ lowerit(lang);
+
/* only open files in the local directory */
if ( strstr(lang, ".") != NULL || strstr(lang, "/") != NULL ) {
global_error("invalid language file",1,0);