Dotclear

Changeset 3295:40d0207e520d


Ignore:
Timestamp:
08/01/16 15:31:14 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Fix reflected XSS vulnerabilities in media manager, thanks Chen Ruiqi for report

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r3268 r3295  
    3232 
    3333// Attachement type if any 
    34 $link_type = !empty($_REQUEST['link_type']) ? $_REQUEST['link_type'] : null; 
     34$link_type = !empty($_REQUEST['link_type']) ? html::escapeHTML($_REQUEST['link_type']) : null; 
    3535 
    3636$page = !empty($_GET['page']) ? max(1,(integer) $_GET['page']) : 1; 
     
    6060 
    6161# Get query if any 
    62 $q = isset($_REQUEST['q']) ? $_REQUEST['q'] : null; 
     62$q = isset($_REQUEST['q']) ? html::escapeHTML($_REQUEST['q']) : null; 
    6363 
    6464# Sort combo 
Note: See TracChangeset for help on using the changeset viewer.

Sites map