- Timestamp:
- Dec 13, 2012, 10:27:24 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/include/functions_metadata.inc.php
r17749 r19417 61 61 foreach (array_keys($map, $iptc_key) as $pwg_key) 62 62 { 63 $result[$pwg_key] = $value; 63 // in case the origin of the photo is unsecure (user upload), we 64 // remove HTML tags to avoid XSS (malicious execution of 65 // javascript) 66 $result[$pwg_key] = strip_tags($value); 64 67 } 65 68 } … … 141 144 } 142 145 146 foreach ($result as $key => $value) 147 { 148 // in case the origin of the photo is unsecure (user upload), we remove 149 // HTML tags to avoid XSS (malicious execution of javascript) 150 $result[$key] = strip_tags($value); 151 } 152 143 153 return $result; 144 154 }
Note: See TracChangeset
for help on using the changeset viewer.