소스 검색

fixed confirm regex

master
Robin Thoni 9 년 전
부모
커밋
9d1f5513fd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      index.php

+ 2
- 2
index.php 파일 보기

@@ -16,11 +16,11 @@ function main()
16 16
   $m_post = ($_SERVER['REQUEST_METHOD'] == "POST");
17 17
   $matches = array();
18 18
 
19
-  $path = rtrim($_GET['_url'], "/");
19
+  $path = rtrim($_GET["_url"], "/");
20 20
   if ($path === "")
21 21
     $path = "/";
22 22
 
23
-  if (preg_match($path, "^/status/([0-9]+)/confirm$", $matches) && $m_post)
23
+  if (preg_match($path, "/^\/status\/([0-9]+)\/confirm$/", $matches) && $m_post)
24 24
     status_confirm($matches[1]);
25 25
   else if ($path === "/status" && $m_post)
26 26
     status_create();

Loading…
취소
저장