From 2ba2d7b1a6b1e75815f27c06822ab2ad5c52c186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Thu, 7 May 2009 15:19:42 +0000 Subject: [PATCH] user web: remove an undocumented feature where anyone could do a recompile of language files by just knowing an URL parameter. svn path=/trunk/boinc/; revision=18046 --- checkin_notes | 7 +++++++ html/inc/translation.inc | 8 -------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/checkin_notes b/checkin_notes index a8cdf42454..b0720078c2 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4388,3 +4388,10 @@ Bernd 7 May 2009 - is a C++ haeder - moved it to __cplusplus section lib/ filesys.h + +Rytis 7 May 2009 + - user web: remove an undocumented feature where anyone could do a + recompile of language files by just knowing an URL parameter. + + hmtl/inc/ + translation.inc diff --git a/html/inc/translation.inc b/html/inc/translation.inc index e09b228c67..38aede9ffd 100644 --- a/html/inc/translation.inc +++ b/html/inc/translation.inc @@ -209,14 +209,6 @@ function language_log($message, $loglevel=0){ } } -// Determine whether to recompile language files -$compile_languages = false; -if (isset($_GET['compile_languages'])) $compile_languages = true; -if ($compile_languages){ - buildLanguages($lang_language_dir,$lang_translations_dir, $lang_compiled_dir); - buildLanguages($lang_language_dir,$lang_prj_translations_dir, $lang_compiled_dir, true); -} - // Make a list of languages which the user prefers // (by looking at cookies and browser settings) // cookies have highest priority.