Skip to content
Snippets Groups Projects
Commit 082cf784 authored by tbrehm's avatar tbrehm
Browse files

Hardcoded $page and $module variables in content.php.

parent 60bc9cd9
No related branches found
No related tags found
2 merge requests!46Master,!21Master
...@@ -31,8 +31,13 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -31,8 +31,13 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
require_once('../lib/config.inc.php'); require_once('../lib/config.inc.php');
require_once('../lib/app.inc.php'); require_once('../lib/app.inc.php');
/*
$module = $_REQUEST["s_mod"]; $module = $_REQUEST["s_mod"];
$page = $_REQUEST["s_pg"]; $page = $_REQUEST["s_pg"];
*/
$module = 'login';
$page = 'index';
if(!preg_match("/^[a-z]{2,20}$/i", $module)) die('module name contains unallowed chars.'); if(!preg_match("/^[a-z]{2,20}$/i", $module)) die('module name contains unallowed chars.');
if(!preg_match("/^[a-z]{2,20}$/i", $page)) die('page name contains unallowed chars.'); if(!preg_match("/^[a-z]{2,20}$/i", $page)) die('page name contains unallowed chars.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment