/[packages]/updates/6/dokuwiki/current/SOURCES/Add_htmlspecialchars.patch
ViewVC logotype

Contents of /updates/6/dokuwiki/current/SOURCES/Add_htmlspecialchars.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1190499 - (show annotations) (download)
Fri Jan 5 17:54:13 2018 UTC (6 years, 3 months ago) by tarakbumba
File size: 739 byte(s)
- Add patch to fix CVE-2017-12583
1 From 6057f47313819fa346dce7b72cf3922ba7931f1a Mon Sep 17 00:00:00 2001
2 From: Phy <i@phy25.com>
3 Date: Tue, 1 Aug 2017 13:07:29 +0800
4 Subject: [PATCH] Add htmlspecialchars when showing $DATE_AT
5
6 Fixes #2061
7 ---
8 doku.php | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/doku.php b/doku.php
12 index 42624fd2e8..cbb4959142 100644
13 --- a/doku.php
14 +++ b/doku.php
15 @@ -62,7 +62,7 @@
16 } else { // check for UNIX Timestamp
17 $date_parse = @date('Ymd',$DATE_AT);
18 if(!$date_parse || $date_parse === '19700101') {
19 - msg(sprintf($lang['unable_to_parse_date'], $DATE_AT));
20 + msg(sprintf($lang['unable_to_parse_date'], htmlspecialchars($DATE_AT)));
21 $DATE_AT = null;
22 }
23 }

  ViewVC Help
Powered by ViewVC 1.1.30