GRAYBYTE WORDPRESS FILE MANAGER6397

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/ninja-forms/includes/Handlers/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/ninja-forms/includes/Handlers//Sanitizer.php
<?php 

namespace NinjaForms\Includes\Handlers;

/**
 * Sanitize output for enhanced functionality while maintaining security
 */
class Sanitizer{

    const DISALLOWED_SCRIPT_TRIGGERS=[
        '/<\s*(script)/i', // < script (includes empty spaces after opening tag)
        '/(onload)/i', // word 'onload' 
        '/(onerror)/i', // word 'onerror'
        '/(onfocus)/i', // word 'onfocus'
        '/(javascript)/i' // word 'javascript'
    ];

    /**
     * Block disallowed script triggering text
     *
     * @param string $string
     * @return string
     */
   public static function preventScriptTriggerInHtmlOutput(string $string): string
    {
        $return = $string;

        $fail = false;

        foreach(self::DISALLOWED_SCRIPT_TRIGGERS as $disallowedString){
            $preg_match = preg_match($disallowedString,$string);

            if($preg_match){
                $fail = true;
            }
        }

        if($fail){
            $return = htmlspecialchars($return,\ENT_QUOTES);
        }

        return $return;
    }
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:23
giriqfky / giriqfky
0644
DateTimeConverter.php
3.168 KB
February 09 2023 21:52:18
giriqfky / giriqfky
0644
Field.php
3.732 KB
March 17 2022 12:30:18
giriqfky / giriqfky
0644
FieldsetRepeater.php
15.445 KB
April 26 2023 20:57:02
giriqfky / giriqfky
0644
LocaleNumberFormatting.php
4.342 KB
April 03 2019 19:43:14
giriqfky / giriqfky
0644
Sanitizer.php
1.029 KB
October 11 2023 20:27:36
giriqfky / giriqfky
0644
SubmissionAggregate.php
12.995 KB
April 12 2023 22:02:08
giriqfky / giriqfky
0644
SubmissionAggregateCsvExportAdapter.php
15.498 KB
February 12 2024 22:23:38
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF