From 55d65138533e1d81f2043dc85e4b8c54ed9cedf7 Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Sat, 19 Aug 2023 12:25:55 +0200 Subject: [PATCH] Update wol.php Disable password validation check --- front/php/server/wol.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/front/php/server/wol.php b/front/php/server/wol.php index eaf43eaa..46644ae6 100644 --- a/front/php/server/wol.php +++ b/front/php/server/wol.php @@ -55,16 +55,16 @@ if (!filter_var($port, FILTER_VALIDATE_INT, array('options' => array('min_range' // Get password $password = isset($_GET['password']) ? $_GET['password'] : ''; -// Validate the password -if (!filter_var($password, FILTER_VALIDATE_REGEXP, array("options" => array("regexp" => "/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$/"))) { +// Validate the password (regular expression requires that the password has at least 8 characters, a lowercase letter, an uppercase letter and a number) +//if (!filter_var($password, FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => '/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$/')))) { // Error message - $output = lang('DevDetail_Tab_Tools_WOL_Error_Password'); +// $output = lang('DevDetail_Tab_Tools_WOL_Error_Password'); // Show the result - echo "
"; - echo $output; - echo ""; - exit; -} +// echo "
"; +// echo $output; +// echo ""; +// exit; +//} // Create the magic packet $magicPacket = pack('H*', 'FF FF FF FF FF FF FF ' . $mac);