Changeset 6842
- Timestamp:
- 03/08/2018 05:28:52 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-readme-validator.php
r6647 r6842 41 41 var readmeInputs = document.getElementsByTagName( 'textarea' ); 42 42 43 readmeInputs[1].value = window.btoa( readmeInputs[0].value ); 43 readmeInputs[1].value = window.btoa( encodeURIComponent( readmeInputs[0].value ).replace( /%([0-9A-F]{2})/g, 44 function toSolidBytes( match, p1 ) { 45 return String.fromCharCode( '0x' + p1 ); 46 }) 47 ); 44 48 45 49 return true;
Note: See TracChangeset
for help on using the changeset viewer.