Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ?>
  2. <?php
  3. if (isset ($_POST['include'])) {
  4. $page[ 'body' ] .= "
  5. <script src='" . $_POST['include'] . "'></script>
  6. ";
  7. }
  8. $page[ 'body' ] .= '
  9. <form name="csp" method="POST">
  10. <p>You can include scripts from external sources, examine the Content Security Policy and enter a URL to include here:</p>
  11. <input size="50" type="text" name="include" value="" id="include" />
  12. <input type="submit" value="Include" />
  13. </form>
  14. ';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement