Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Julien Ledoux
lemonldap-ng
Commits
77874022
Commit
77874022
authored
Oct 04, 2017
by
Yadd
Browse files
Little error in #1309 + use it
parent
a2f411f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
77874022
...
...
@@ -506,7 +506,6 @@ plackup:
-I
`
pwd
`
/lemonldap-ng-portal/blib/lib/
\
-I
`
pwd
`
/lemonldap-ng-manager/blib/lib/
\
e2e-tests/conf/sbin/llng-fastcgi-server
\
-f
e2e-tests/custom.pm
\
-F
>
e2e-tests/conf/fastcgi.log 2>&1 &
install_test
:
...
...
e2e-tests/env.conf
View file @
77874022
...
...
@@ -7,5 +7,4 @@ SetEnv LLNG_DEFAULTCONFFILE __pwd__/e2e-tests/conf/lemonldap-ng.ini
use
lib
"__pwd__/lemonldap-ng-handler/blib/lib"
;
use
lib
"__pwd__/lemonldap-ng-portal/blib/lib"
;
use
lib
"__pwd__/lemonldap-ng-manager/blib/lib"
;
require
"__pwd__/e2e-tests/custom.pm"
;
</
perl
>
e2e-tests/lemonldap-ng.ini
View file @
77874022
[all]
logLevel
=
debug
require
=
__pwd__/e2e-tests/custom.pm
[configuration]
...
...
lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Jail.pm
View file @
77874022
...
...
@@ -32,16 +32,16 @@ sub build_jail {
$self
->
useSafeJail
(
1
)
unless
defined
$self
->
useSafeJail
;
if
(
$require
)
{
foreach
my
$f
(
split
/[, ]+/
,
$require
)
{
if
(
$f
=~
/^[\w\:]+$/
)
{
if
(
$require
)
{
foreach
my
$f
(
split
/[, ]+/
,
$require
)
{
if
(
$f
=~
/^[\w\:]+$/
)
{
eval
"
require
$f
";
}
else
{
eval
"
require
'
$f
'
"
;
eval
{
require
$f
;
}
;
}
if
(
$@
)
{
die
"
Unable to load
required files
: $@
";
if
(
$@
)
{
die
"
Unable to load
'
$f
'
: $@
";
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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