Merged changes in main branch up to v.2.1.2
[fa-stable.git] / includes / lang / language.php
index 059901cfc66cfee89278b72f929ea583d6973b3e..0727222cd09a6338c3ea56ec0c82977815a0bea3 100644 (file)
@@ -9,6 +9,9 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
+// Prevent register_globals vulnerability
+if (isset($_GET['path_to_root']) || isset($_POST['path_to_root']))
+       die("Restricted access");
 include_once($path_to_root . "/lang/installed_languages.inc");
 include_once($path_to_root . "/includes/lang/gettext.php");