<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Fushihara</author_name>
  <author_url>https://blog.hatena.ne.jp/Fushihara/</author_url>
  <blog_title>Fushihara’s blog</blog_title>
  <blog_url>https://fushihara.hatenadiary.jp/</blog_url>
  <categories>
    <anon>未分類</anon>
  </categories>
  <description>$ch = curl_init(&quot;http://...&quot;); curl_setopt($ch,CURLOPT_POSTFIELDS,[&quot;message&quot;=&gt;$_POST[&quot;msg&quot;]]); この場合、$POST[&quot;msg&quot;]が&quot;@/etc/passwd&quot;等@から始まる文字列だった場合、サーバー内の任意のファイルが送信されるから注意。&quot;@/etc/passwdhoge&quot;でも通る。 受け取る時$POST[&quot;message&quot;]ではなく$FILES[&quot;message&quot;]になるからそのまま表示されるみたいな事はまずないと思うけど。 受け取る側がphp以外だったら知らない。自動的に$FILESの中身も展開…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffushihara.hatenadiary.jp%2Fentry%2Farchives%2F1049&quot; title=&quot;phpのCURLOPT_POSTFIELDSに配列を渡すと@から始まるテキストをファイル名として読み込む事について - Fushihara’s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-12-31 04:54:39</published>
  <title>phpのCURLOPT_POSTFIELDSに配列を渡すと@から始まるテキストをファイル名として読み込む事について</title>
  <type>rich</type>
  <url>https://fushihara.hatenadiary.jp/entry/archives/1049</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
