huwhois 3 years ago
parent
commit
a96dd7dadf
2 changed files with 3 additions and 2 deletions
  1. 2 1
      application/App.php
  2. 1 1
      public/info.php

+ 2 - 1
application/App.php

@ -20,12 +20,13 @@ class App{
20 20
    public static function getAction()
21 21
    {
22 22
        $pathinfo = "";
23
        if (isset($_SERVER['PATH_INFO'])) {
23
        if (isset($_SERVER['PATH_INFO']) && !empty($_SERVER['PATH_INFO']) ) {
24 24
            $pathinfo = $_SERVER['PATH_INFO'];
25 25
        } else {
26 26
            $pathinfo = strpos($_SERVER['REQUEST_URI'], '?') ? strstr($_SERVER['REQUEST_URI'], '?', true) : $_SERVER['REQUEST_URI'];
27 27
        }
28 28
29
29 30
        $action = '';
30 31
        $doc = '';
31 32

+ 1 - 1
public/info.php

@ -1,2 +1,2 @@
1 1
<?php
2
echo md5("admin");
2
phpinfo();