Skip to content

Instantly share code, notes, and snippets.

@mudrd8mz
Created July 7, 2011 15:26
Show Gist options
  • Save mudrd8mz/1069757 to your computer and use it in GitHub Desktop.
Save mudrd8mz/1069757 to your computer and use it in GitHub Desktop.
At attempt to reproduce MDL-28161
<?php
require('config.php');
$CFG->enablehtmlpurifier = 1;
$PAGE->set_context(get_system_context());
$PAGE->set_url('/test.php');
echo $OUTPUT->header();
echo purify_html('A');
purge_all_caches();
echo purify_html('B');
echo $OUTPUT->footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment