fix warning strpos : $description is an array, not a string

1.10.x
eric 10 years ago
parent 19bc7572b0
commit 159dade2ab
  1. 2
      main/course_description/course_description_controller.php

@ -45,7 +45,7 @@ class CourseDescriptionController
$data['descriptions'] = array($data['descriptions']);
}
foreach ($data['descriptions'] as $description) {
if (strpos($description, '<iframe') !== false && $browser['name'] == 'Chrome') {
if (strpos($description['content'], '<iframe') !== false && $browser['name'] == 'Chrome') {
header("X-XSS-Protection: 0");
}
}

Loading…
Cancel
Save