전체 글 썸네일형 리스트형 Screen recorder in JS canvasrecord.js canvasrecord.js (function() { let canvas = document.querySelector('canvas'); // Optional frames per second argument. let stream = canvas.captureStream(25); let recorder = new MediaRecorder(stream, options); let blobs = []; function download(blob) { var url = window.URL.createObjectURL(blob); var a = document.createElement('a'); a.style.display = 'none'; a.href = url; a.download =.. 더보기 RSpec basic authentication helper module for request and controller specs module AuthHelper def http_login user = 'username' pw = 'password' request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,pw) endend module AuthRequestHelper # # pass the @env along with your request, eg: # # GET '/labels', {}, @env # def http_login @env ||= {} user = 'username' pw = 'password' @env['HTTP_AUTHORIZATION'] = ActionController::HttpAu.. 더보기 xss 테스트 코드 onmouseover="alert(document.cookie);" add to test DB xss_clean("a") (without spaces). It added and destroy some data. Is it bug 더보기 php XSS filter PHP filter class to prevent cross-site-scripting (XSS) vulnerabilities. Removes dangerous tags and protocols from HTML. The main difference between this class and strip_tags() or filter_var() is that you can preserve certain tags AND sanitize their attributes. Port of Drupal's XSS filter $filter = new Filter(); $allowed_protocols = array('http', 'ftp', 'mailto');$allowed_tags = array('a', 'i', '.. 더보기 이전 1 ··· 6 7 8 9 10 11 12 ··· 179 다음