Skip to content

Instantly share code, notes, and snippets.

View MaqaKh's full-sized avatar
🏠
Working from home

MtN MaqaKh

🏠
Working from home
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaqaKh
MaqaKh / index.php
Created April 1, 2016 05:06 — forked from no1k/index.php
Single image upload PHP
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Single Upload Form with PHP</title>
</head>
<body>
<form method="POST" action="upload.php" enctype="multipart/form-data">
<label for="file"> Pick a file : </label>
@MaqaKh
MaqaKh / xss_clean.php
Created March 17, 2016 16:21 — forked from mbijon/xss_clean.php
XSS filtering in PHP (cleans various UTF encodings & nested exploits)
<?php
/*
* XSS filter, recursively handles HTML tags & UTF encoding
* Optionally handles base64 encoding
*
* ***DEPRECATION RECOMMENDED*** Not updated or maintained since 2011
* A MAINTAINED & BETTER ALTERNATIVE => kses
* https://github.com/RichardVasquez/kses/
*
* This was built from numerous sources