This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="?submit" method="post"> | |
<input type="hidden" name="contactform" value="true"> | |
<input class="hidden" name="email" value="" autocomplete="off"> | |
<input class="hidden" name="first_name" value="" autocomplete="off"> | |
<input class="hidden" name="last_name" value="" autocomplete="off"> | |
<div class="cols"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
const selector = 'input,textarea'; | |
const excluded = ['checkbox', 'radio', 'hidden', 'submit', 'email', 'tel']; | |
const inputs = [...document.querySelectorAll(selector)]; | |
inputs.forEach(input => { | |
const { name, type } = input; | |
if (name && name.length > 0 && excluded.indexOf(type) === -1) { | |
input.value = `<script> alert('${name}'); </script>`; | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sizePropType from '../propTypes/size'; | |
import sizeClass from '../utils/sizeClass'; | |
const Component = ({ size }) => { | |
let classNames = ''; | |
if (size) classNames += ' ' + sizeClass(size); | |
return <div className={classNames} />; | |
}; | |
Component.propTypes = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// !!! | |
//die('FTTB'); | |
// Set content type and disable encoding | |
header('Content-Type: text/html; charset=UTF-8'); | |
//header('Transfer-Encoding: chunked'); | |
header('Content-Encoding: none'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:void((function(d){var f=d.forms,l=f.length,i=0;for(i;i<l;++i)f[i].setAttribute('novalidate',true)})(document)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (d) { | |
var f = d.forms, l = f.length, i = 0; | |
for (i; i < l; ++i) { | |
f[i].setAttribute('novalidate', true); | |
} | |
})(document); |