Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/init.php
blob: 3ea1c4dbfc94d14e4e889eb788f99dbd2b2c428e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
define("BASE", __DIR__);

$_SERVER['QUERY_STRING'] =
  str_replace('&amp;', '&',
    htmlspecialchars(
      preg_replace(
        '/%.?.?/', '',
        $_SERVER['QUERY_STRING']
      )
    )
  );

$_SERVER['REQUEST_URI'] =
  str_replace('&amp;', '&',
    htmlspecialchars(
      preg_replace(
        '/%.?.?/', '',
        $_SERVER['REQUEST_URI']
      )
    )
  );

foreach ($_GET as $key => $val) {
  $_GET[$key] =
    htmlspecialchars(
      preg_replace(
        '/%.?.?/', '',
        $_GET[$key]
      )
    );
}