Skip to content

Commit

Permalink
Merge pull request #807 from LoginRadius/dev
Browse files Browse the repository at this point in the history
DevtoStagConfresolution
  • Loading branch information
rajeevsharma34 committed Sep 12, 2024
2 parents bd171a5 + d8cd5d9 commit 8881c76
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,12 @@
define('ROOT_URL', $rootURL);
define('Proxy_Domain_Path',$proxyDomainParse['path']);




$document = isset($_GET['document']) ? $_GET['document'] : '';

// Step 2: Sanitize the input to prevent XSS attacks
$document_sanitized = htmlspecialchars($document, ENT_QUOTES, 'UTF-8');
define('DOCUMENT_PATH',$document_sanitized);




/* DATABASE */
define('DATABASE', 'database');

Expand Down Expand Up @@ -92,10 +86,6 @@
define('AZURE_ACCOUNT_KEY', getenv('AZURE_ACCOUNT_KEY'));
define('IMAGE_FILE_FORMAT', 'png,jpg,gif');





//AWS S3 Bucket Credentials
define('AWS_REGION', getenv('AWS_REGION'));
define('AWS_ACCESS_KEY', getenv('AWS_ACCESS_KEY'));
Expand Down Expand Up @@ -125,4 +115,4 @@

ini_set('session.use_only_cookies', 1);
ini_set('session.cookie_secure', 1);
ini_set('session.cookie_httponly', 1);
ini_set('session.cookie_httponly', 1);

0 comments on commit 8881c76

Please sign in to comment.