Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?>
- <?php
- if (isset ($_POST['include'])) {
- $page[ 'body' ] .= "
- <script src='" . $_POST['include'] . "'></script>
- ";
- }
- $page[ 'body' ] .= '
- <form name="csp" method="POST">
- <p>You can include scripts from external sources, examine the Content Security Policy and enter a URL to include here:</p>
- <input size="50" type="text" name="include" value="" id="include" />
- <input type="submit" value="Include" />
- </form>
- ';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement