1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Immunity against CRLF

This commit is contained in:
Jakub Vrana
2010-10-16 22:36:01 +02:00
parent 0198c36c90
commit 53804a2c20
2 changed files with 2 additions and 0 deletions

View File

@@ -244,6 +244,7 @@ foreach (array("adminer", "editor") as $project) {
}
$file = preg_replace_callback("~lang\\('((?:[^\\\\']+|\\\\.)*)'([,)])~s", 'lang_ids', $file);
$file = preg_replace_callback('~\\b(include|require) "([^"]*\\$LANG.inc.php)";~', 'put_file_lang', $file);
$file = str_replace("\r", "", $file);
if ($_SESSION["lang"]) {
// single language version
$file = preg_replace_callback("~(<\\?php\\s*echo )?lang\\('((?:[^\\\\']+|\\\\.)*)'([,)])(;\\s*\\?>)?~s", 'remove_lang', $file);