Browse Source

ごめん

諏訪子 1 year ago
parent
commit
5c57d4b0ca
1 changed files with 1 additions and 0 deletions
  1. 1 0
      www/proxy.php

+ 1 - 0
www/proxy.php

@@ -1,6 +1,7 @@
 <?php
   require_once("../config.php");
   $url = htmlspecialchars($_GET["url"]);
+  if (explode("/", $url)[0] != "i.pximg.net" && explode("/", $url)[0] != "s.pximg.net") die("不正なURL");
 
   // ファイル類
   $ext = explode(".", $url);