Permalink
Browse files

SG added sanitize functions to input

  • Loading branch information...
root
root committed Oct 17, 2018
1 parent d51d639 commit a1f7d259834b0362e9b7ffd9c580580253daa4a9
Showing with 29 additions and 3 deletions.
  1. +4 −0 index.php
  2. +2 −0 nubuilder_session_data.php
  3. +4 −0 nureportdesigner.php
  4. +5 −0 nurunhtml.php
  5. +5 −1 nurunpdf.php
  6. +6 −0 nusystemupdate.php
  7. +1 −0 nuwordpresssetuplibs.php
  8. +2 −2 readme.txt
@@ -1,4 +1,8 @@
<?php
//Sanitize All Input
require_once('nusanitize.php');
nu_sanitize();
require_once('nuchoosesetup.php');
require_once('nuindexlibs.php');
@@ -22,6 +22,7 @@ class nubuilder_session_data {
var $WP_ROLES = '';
var $WP_SITE_URL = '';
var $JQ_PATH = '';
var $WP_BLOG_CHARSET = 'UTF-8';
function __construct() {
}
@@ -50,6 +51,7 @@ function construct_wordpress($wpdata) {
$this->WP_ROLES = $wpdata->WP_ROLES;
$this->WP_SITE_URL = $wpdata->WP_SITE_URL;
$this->JQ_PATH = $this->WP_SITE_URL.'/wp-includes/js/jquery/jquery.js';
$this->WP_BLOG_CHARSET = $wpdata->WP_BLOG_CHARSET;
}
function construct_standalone($nuConfigDBHost, $nuConfigDBName, $nuConfigDBUser, $nuConfigDBPassword, $nuConfigDBGlobeadminUsername, $nuConfigDBGlobeadminPassword, $nuConfigIsDemo = false) {
@@ -2,6 +2,10 @@
if ( !session_id() ) {
session_start();
}
//Sanitize All Input
require_once('nusanitize.php');
nu_sanitize();
?>
<!DOCTYPE html>
<html>
@@ -1,4 +1,9 @@
<?php
//Sanitize All Input
require_once('nusanitize.php');
nu_sanitize();
require_once('nucommon.php');
require_once('nudata.php');
@@ -1,8 +1,12 @@
<?php
//Sanitize All Input
require_once('nusanitize.php');
nu_sanitize();
require_once('nusession.php');
require_once('nucommon.php');
require_once('nudata.php');
//require_once('tfpdf/tfpdf.php');
require_once('tcpdf/tcpdf.php');
define('FPDF_FONTPATH','tcpdf/font/');
@@ -1,5 +1,11 @@
<?php
session_start();
//Sanitize All Input
require_once('nusanitize.php');
nu_sanitize();
require_once('nucommon.php');
require_once('nudata.php');
require_once('nusystemupdatelibs.php');
@@ -86,6 +86,7 @@ function nu_construct_session_data_WPcoupled() {
$nubuilder_session_data->WP_ADMIN_URL = admin_url();
$nubuilder_session_data->WP_ROLES = nu_construct_roles_WPcoupled();
$nubuilder_session_data->WP_SITE_URL = site_url();
$nubuilder_session_data->WP_BLOG_CHARSET = get_option('blog_charset');
$json = json_encode($nubuilder_session_data);
$encode = base64_encode($json);
@@ -7,8 +7,8 @@ Requires at least: 4.9.8
Tested up to: 4.9.8
Stable tag: 4.9.8
Requires PHP: 5.2.4
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
License: GPLv3
License URI: https://www.gnu.org/licenses/old-licenses/gpl-3.0.html
nuBuilder is the world's best: open-source, low-code application and report builder.

0 comments on commit a1f7d25

Please sign in to comment.