From 3785bbf9201d52379987b5444967286d2d3e8adc Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Fri, 4 Mar 2016 10:01:31 +0100 Subject: . --- execute_ih.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'execute_ih.c') diff --git a/execute_ih.c b/execute_ih.c index fa511b9..a59e6c5 100644 --- a/execute_ih.c +++ b/execute_ih.c @@ -66,22 +66,22 @@ S7_IH_FUNCTION(preg_replace) // #endif /* SUHOSIN7_PREG_REPLACE_NULL */ -// int ih_symlink(IH_HANDLER_PARAMS) -// { -// if (SUHOSIN7_G(executor_allow_symlink)) { -// return (0); -// } -// -// if (PG(open_basedir) && PG(open_basedir)[0]) { -// suhosin_log(S_EXECUTOR, "symlink called during open_basedir"); -// if (!SUHOSIN7_G(simulation)) { -// RETVAL_FALSE; -// return (1); -// } -// } -// -// return (0); -// } +S7_IH_FUNCTION(symlink) +{ + if (SUHOSIN7_G(executor_allow_symlink)) { + return (0); + } + + if (PG(open_basedir) && PG(open_basedir)[0]) { + suhosin_log(S_EXECUTOR, "symlink called during open_basedir"); + if (!SUHOSIN7_G(simulation)) { + RETVAL_FALSE; + return (1); + } + } + + return (0); +} // int ih_mail(IH_HANDLER_PARAMS) // { -- cgit v1.3