Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
082cf784
Commit
082cf784
authored
Sep 14, 2009
by
tbrehm
Browse files
Hardcoded $page and $module variables in content.php.
parent
60bc9cd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/content.php
View file @
082cf784
...
@@ -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.'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment