Dieser Commit ist enthalten in:
Ursprung
2b21070b1a
Commit
f7a7c71f86
1583 geänderte Dateien mit 454759 neuen und 0 gelöschten Zeilen
16
public/flag.php
Normale Datei
16
public/flag.php
Normale Datei
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
//TODO security -> implement whitelist of characters for langId
|
||||
$country = str_replace(
|
||||
array('..', "\x00"),
|
||||
'',
|
||||
$_GET['langId']
|
||||
);
|
||||
|
||||
$languageDir = realpath(dirname(__FILE__) . '/../application/language');
|
||||
|
||||
header('Content-Type: image/gif');
|
||||
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
$image = $languageDir . DS . $country . DS . 'flag.gif';
|
||||
|
||||
readfile(realpath($image));
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren