소스 검색

i dont think this piece of shit website couldve came up with a more annoying url scheme

lolcat 1 주 전
부모
커밋
bdc3cffc7b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/frontend.php

+ 1 - 1
lib/frontend.php

@@ -823,7 +823,7 @@ class frontend{
 						// https://ihsoyct.github.io/index.html?author=google&mode=comments&backend=pullpush
 						elseif(
 							preg_match(
-								'/^\/(?:u|user)\/([^\/]+)\//',
+								'/^\/(?:u|user)\/([^\/]+)\/(?:(?:comments|submitted)\/?)?(?:$|\?|&)/',
 								$host["path"],
 								$slug
 							)