mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
RSS 발행시 title에 출력되는 문자열에 htmlspecialchars를 적용하여 XML문서가 깨어지지 않도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6728 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1168c09fb9
commit
013919f29c
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
{'<?xml version="1.0" encoding="UTF-8" ?>'}
|
||||||
|
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
<title type="text">{$info->title}</title>
|
<title type="text">{htmlspecialchars($info->title)}</title>
|
||||||
<!--@if($info->description)-->
|
<!--@if($info->description)-->
|
||||||
<subtitle type="html">{str_replace('\'', ''', htmlspecialchars($info->description))}</subtitle>
|
<subtitle type="html">{str_replace('\'', ''', htmlspecialchars($info->description))}</subtitle>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
|
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
|
||||||
<channel>
|
<channel>
|
||||||
<title>{$info->title}</title>
|
<title>{htmlspecialchars($info->title)}</title>
|
||||||
<link>{$info->link}</link>
|
<link>{$info->link}</link>
|
||||||
<description>{$info->description}</description>
|
<description>{$info->description}</description>
|
||||||
<language>{$info->language}</language>
|
<language>{$info->language}</language>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue