Skip to content

Commit

Permalink
5662 whitelist post[url] with htmlspecialchars_decode
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrgay committed Mar 25, 2016
1 parent e16e6cf commit b011cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/_core/imscp/ims_import.php
Expand Up @@ -669,7 +669,7 @@ function glossaryCharacterData($parser, $data){
}

if (isset($_POST['url']) && ($_POST['url'] != 'http://') ) {
if ($content = @file_get_contents($_POST['url'])) {
if ($content = @file_get_contents(htmlspecialchars_decode($_POST['url']))) {
// save file to /content/
$filename = substr(time(), -6). '.zip';
$full_filename = AT_CONTENT_DIR . $filename;
Expand Down

0 comments on commit b011cc6

Please sign in to comment.