Răsfoiți Sursa

Primitive extension system: minor change

https://github.com/marienfressinaud/FreshRSS/issues/252
Alexandre Alapetite 11 ani în urmă
părinte
comite
5a9b08e084
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      p/ext.php

+ 3 - 0
p/ext.php

@@ -20,6 +20,9 @@ if (isset($_GET['j'])) {
 	header('Content-Type: text/css; charset=UTF-8');
 	header('Content-Disposition: inline; filename="style.css"');
 	$filename .= 'style.css';
+} else {
+	header('HTTP/1.1 400 Bad Request');
+	die();
 }
 
 $mtime = @filemtime($filename);