<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>teracc</author_name>
  <author_url>https://blog.hatena.ne.jp/teracc/</author_url>
  <blog_title>teracc’s blog</blog_title>
  <blog_url>https://blog.ts5.me/</blog_url>
  <categories>
    <anon>セキュリティ</anon>
  </categories>
  <description>PHPでのプログラミングを取り上げたサイトで、少々おかしなコードを見つけた。 調べてみると、他にも同じような書き方をしているサイトをいくつか見つけたので、日記のネタにしてみようかと思う。そのコードは、以下のようなもの（表示の都合で折り返している）。 &lt;a href=&quot;foo.php?SESS=&lt;?= htmlspecialchars($sid) ?&gt;&quot;&gt;次へ&lt;/a&gt; $sidはセッションIDで、これをHTMLエスケープしてアンカーURLの後ろにくっつけている。リンクを辿った際に、セッションIDが次ページに引き継がれるようにするためだ。ちなみにPHPでは、クライアントが送ってきたセッションID（…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ts5.me%2Fentry%2F20061206%2F1165400473&quot; title=&quot;おかしなHTMLエスケープ - teracc’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>2006-12-06 19:21:13</published>
  <title>おかしなHTMLエスケープ</title>
  <type>rich</type>
  <url>https://blog.ts5.me/entry/20061206/1165400473</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
