Project

General

Profile

« Previous | Next » 

Revision 532

Added by doc almost 17 years ago

this bugfix closes ticket 412 (direct call of admin/settings/save.php clears database)

View differences:

save.php
23 23

  
24 24
*/
25 25

  
26
// prevent this file from being accessed directly in the browser (would set all entries in DB settings table to '')
27
if(!isset($_POST['default_language']) || $_POST['default_language'] == '') die("Cannot access this file directly");  
28

  
26 29
// Find out if the user was view advanced options or not
27 30
if($_POST['advanced'] == 'yes' ? $advanced = '?advanced=yes' : $advanced = '');
28 31

  

Also available in: Unified diff