Giter VIP home page Giter VIP logo

append-header-footer's Introduction

Hi ๐Ÿ‘‹, I'm Yester

  • Mobile App Development (Flutter / Java)
  • Web Development (PHP CI/Laravel, ASP C#, NodeJS)
  • Software Development (C#,Java,Python,Electron)
  • WordPress (WooCommerce and Elementor Expert)
  • FilamentPHP Expert

๐Ÿ“ซ Lets talk [email protected]

๐ŸŒ yesterselga.com

Languages and Tools:

android css3 dart firebase flutter html5 java javascript kotlin python

append-header-footer's People

Contributors

yesterselga avatar

Stargazers

 avatar

Watchers

 avatar  avatar

append-header-footer's Issues

wp-code Malicious Code Execution Vulnerability

exploit
image
defect code ๏ผš
public function get_value_comma_separated_code( $value, $quotes = true ) {
$items = explode( ',', $value );

	return $this->array_to_code_string( $items, $quotes );
}

/**
 * Takes an array of strings and returns php code for an array of strings.
 *
 * @param string[] $items The array to convert.
 * @param bool     $quotes Whether to add quotes to the values or not.
 *
 * @return string
 */
public function array_to_code_string( $items, $quotes = true ) {
	if ( empty( $items ) || empty( $items[0] ) ) {
		return 'array()';
	}
	$items = array_map( 'trim', $items );
	if ( $quotes ) {
		$items = array_map( array( $this, 'add_quotes' ), $items );
	}

	return 'array( ' . implode( ', ', $items ) . ' )';
}

/**
 * Callback to add quotes because we can't use closures in PHP 5.2.
 *
 * @param string $item String to add quotes to.
 *
 * @return string
 */
private function add_quotes( $item ) {
	return "'$item'";
}
POC๏ผš

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.