| @@ -156,9 +156,9 @@ | ||
| 156 | 156 | { |
| 157 | 157 | // opt-in missing, ask the user to agree to our terms |
| 158 | 158 | echo JLayoutHelper::render('html.rss.optin'); |
| 159 | 159 | } |
| 160 | - catch (Exception $e) | |
| 160 | + catch (Throwable $e) | |
| 161 | 161 | { |
| 162 | 162 | // service declined, go ahead silently |
| 163 | 163 | } |
| 164 | 164 | } |
| @@ -350,9 +350,9 @@ | ||
| 350 | 350 | // make sure we are filtering a POST context |
| 351 | 351 | if ($context == 'post') |
| 352 | 352 | { |
| 353 | 353 | // add support for input field |
| 354 | - $tags['input'] = array( | |
| 354 | + $tags['input'] = [ | |
| 355 | 355 | 'type' => true, |
| 356 | 356 | 'name' => true, |
| 357 | 357 | 'id' => true, |
| 358 | 358 | 'class' => true, |
| @@ -359,12 +359,12 @@ | ||
| 359 | 359 | 'value' => true, |
| 360 | 360 | 'style' => true, |
| 361 | 361 | 'disabled' => true, |
| 362 | 362 | 'readonly' => true, |
| 363 | - ); | |
| 363 | + ]; | |
| 364 | 364 | |
| 365 | 365 | // add support for textarea field |
| 366 | - $tags['textarea'] = array( | |
| 366 | + $tags['textarea'] = [ | |
| 367 | 367 | 'name' => true, |
| 368 | 368 | 'id' => true, |
| 369 | 369 | 'class' => true, |
| 370 | 370 | 'style' => true, |
| @@ -371,9 +371,9 @@ | ||
| 371 | 371 | 'rows' => true, |
| 372 | 372 | 'cols' => true, |
| 373 | 373 | 'disabled' => true, |
| 374 | 374 | 'readonly' => true, |
| 375 | - ); | |
| 375 | + ]; | |
| 376 | 376 | |
| 377 | 377 | // add support for button |
| 378 | 378 | if (isset($tags['button'])) |
| 379 | 379 | { |
| @@ -382,9 +382,9 @@ | ||
| 382 | 382 | } |
| 383 | 383 | else |
| 384 | 384 | { |
| 385 | 385 | // define all supported attributes |
| 386 | - $tags['button'] = array( | |
| 386 | + $tags['button'] = [ | |
| 387 | 387 | 'type' => true, |
| 388 | 388 | 'id' => true, |
| 389 | 389 | 'class' => true, |
| 390 | 390 | 'style' => true, |
| @@ -389,10 +389,15 @@ | ||
| 389 | 389 | 'class' => true, |
| 390 | 390 | 'style' => true, |
| 391 | 391 | 'onclick' => true, |
| 392 | 392 | 'disabled' => true, |
| 393 | - ); | |
| 393 | + ]; | |
| 394 | 394 | } |
| 395 | + | |
| 396 | + // add support for source under a <video> tag | |
| 397 | + $tags['source'] = [ | |
| 398 | + 'src' => true, | |
| 399 | + ]; | |
| 395 | 400 | } |
| 396 | 401 | |
| 397 | 402 | return $tags; |
| 398 | 403 | }, 10, 2); |