Sfoglia il codice sorgente

* Removed potential security loophole that I inadvertantly added.
Config vars used to be able to be overwritten by global data if
gpc_magic_quotes() was enabled.

Tyler Akins 24 anni fa
parent
commit
67f3a8910b
1 ha cambiato i file con 7 aggiunte e 5 eliminazioni
  1. 7 5
      src/validate.php

+ 7 - 5
src/validate.php

@@ -17,11 +17,6 @@
    session_start();
    session_start();
    include ('../functions/auth.php');
    include ('../functions/auth.php');
    
    
-   // Everyone needs stuff from config, and config needs stuff from
-   // strings.php, so include them both here.
-   include ('../functions/strings.php');
-   include ('../config/config.php');
-   
    is_logged_in();
    is_logged_in();
 
 
 
 
@@ -105,4 +100,11 @@
        }
        }
    }
    }
 
 
+   // Everyone needs stuff from config, and config needs stuff from
+   // strings.php, so include them both here.
+   // Include them down here instead of at the top so that all config
+   // variables overwrite any passed in variables (for security)
+   include ('../functions/strings.php');
+   include ('../config/config.php');
+   
 ?>
 ?>