Skip to content

Commit ca67c05

Browse files
author
metaphorcreations
committed
XSS vulnerability fix
git-svn-id: http://plugins.svn.wordpress.org/post-duplicator/trunk@1388319 b8457f37-d9ea-0310-8a92-e5e31aec5664
1 parent e0c7896 commit ca67c05

10 files changed

+347
-95
lines changed

Diff for: includes/notices.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
function mtphr_post_duplicator_notice() {
88

9-
$duplicated_id = isset($_GET['post-duplicated']) ? $_GET['post-duplicated'] : '';
9+
$duplicated_id = isset($_GET['post-duplicated']) ? htmlspecialchars($_GET['post-duplicated'], ENT_QUOTES, 'UTF-8') : '';
1010
if( $duplicated_id != '' ) {
1111

1212
$settings = get_mtphr_post_duplicator_settings();

Diff for: includes/settings.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
function mtphr_post_duplicator_settings_page() {
1010

1111
add_management_page(
12-
'Post Duplicator', // The value used to populate the browser's title bar when the menu page is active
13-
'Post Duplicator', // The label of this submenu item displayed in the menu
12+
__('Post Duplicator', 'post-duplicator'), // The value used to populate the browser's title bar when the menu page is active
13+
__('Post Duplicator', 'post-duplicator'), // The label of this submenu item displayed in the menu
1414
'administrator', // What roles are able to access this submenu item
1515
'mtphr_post_duplicator_settings_menu', // The ID used to represent this submenu item
1616
'mtphr_post_duplicator_settings_display' // The callback function used to render the options for this submenu item

Diff for: languages/post-duplicator-de_DE.mo

1000 Bytes
Binary file not shown.

Diff for: languages/post-duplicator-de_DE.po

+89-40
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,162 @@
11
msgid ""
22
msgstr ""
3-
"Project-Id-Version: Post Duplicator v2.8\n"
3+
"Project-Id-Version: Post Duplicator v2.16\n"
44
"Report-Msgid-Bugs-To: \n"
55
"POT-Creation-Date: 2015-09-17 10:33+0100\n"
6-
"PO-Revision-Date: 2015-09-18 01:48:47+0000\n"
6+
"PO-Revision-Date: 2016-03-11 12:49-0600\n"
77
"Last-Translator: \n"
88
"Language-Team: \n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
1212
"Plural-Forms: nplurals=2; plural=n != 1;\n"
13-
"X-Generator: Poedit 1.7.4\n"
14-
"X-Poedit-Language: \n"
15-
"X-Poedit-Country: \n"
13+
"X-Generator: Poedit 1.8.7\n"
1614
"X-Poedit-SourceCharset: utf-8\n"
17-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
15+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
1816
"X-Poedit-Basepath: ..\n"
19-
"X-Poedit-Bookmarks: \n"
17+
"X-Textdomain-Support: yes\n"
18+
"Language: de_DE\n"
2019
"X-Poedit-SearchPath-0: .\n"
21-
"X-Textdomain-Support: yes"
2220

23-
#: includes/edit.php:17
21+
# @ post-duplicator
22+
#: includes/edit.php:16
2423
#, php-format
25-
#@ post-duplicator
2624
msgid "Duplicate %s"
2725
msgstr "Kopiere %s"
2826

27+
# @ post-duplicator
2928
#: includes/settings.php:32
30-
#@ post-duplicator
3129
msgid "Post Status"
3230
msgstr "Status"
3331

34-
#: includes/settings.php:35
35-
#@ post-duplicator
32+
# @ post-duplicator
33+
#: includes/helpers.php:10 includes/settings.php:35
3634
msgid "Same as original"
3735
msgstr "Wie Original"
3836

37+
# @ post-duplicator
3938
#: includes/settings.php:36
40-
#@ post-duplicator
4139
msgid "Draft"
4240
msgstr "Entwurf"
4341

42+
# @ post-duplicator
4443
#: includes/settings.php:37
45-
#@ post-duplicator
4644
msgid "Published"
4745
msgstr "Veröffentlicht"
4846

47+
# @ post-duplicator
4948
#: includes/settings.php:38
50-
#@ post-duplicator
5149
msgid "Pending"
5250
msgstr "Ausstehend"
5351

54-
#: includes/settings.php:44
55-
#@ post-duplicator
52+
# @ post-duplicator
53+
#: includes/settings.php:51
5654
msgid "Post Date"
5755
msgstr "Datum"
5856

59-
#: includes/settings.php:47
60-
#@ post-duplicator
57+
# @ post-duplicator
58+
#: includes/settings.php:54
6159
msgid "Duplicate Timestamp"
6260
msgstr "Kopiere Zeitstempel"
6361

64-
#: includes/settings.php:48
65-
#@ post-duplicator
62+
# @ post-duplicator
63+
#: includes/settings.php:55
6664
msgid "Current Time"
6765
msgstr "Aktuelle Zeit"
6866

69-
#: includes/settings.php:55
70-
#@ post-duplicator
67+
# @ post-duplicator
68+
#: includes/settings.php:78
7169
msgid "Offset Date"
7270
msgstr "Datums-Abweichung"
7371

74-
#: includes/settings.php:61
75-
#@ post-duplicator
72+
# @ post-duplicator
73+
#: includes/settings.php:84
7674
msgid " days"
7775
msgstr "Tage"
7876

79-
#: includes/settings.php:68
80-
#@ post-duplicator
77+
# @ post-duplicator
78+
#: includes/settings.php:91
8179
msgid " hours"
8280
msgstr "Stunden"
8381

84-
#: includes/settings.php:75
85-
#@ post-duplicator
82+
# @ post-duplicator
83+
#: includes/settings.php:98
8684
msgid " minutes"
8785
msgstr "Minuten"
8886

89-
#: includes/settings.php:82
90-
#@ post-duplicator
87+
# @ post-duplicator
88+
#: includes/settings.php:105
9189
msgid " seconds"
9290
msgstr "Sekunden"
9391

94-
#: includes/settings.php:89
95-
#@ post-duplicator
92+
# @ post-duplicator
93+
#: includes/settings.php:112
9694
msgid "newer"
9795
msgstr "früher"
9896

99-
#: includes/settings.php:90
100-
#@ post-duplicator
97+
# @ post-duplicator
98+
#: includes/settings.php:113
10199
msgid "older"
102100
msgstr "später"
103101

104-
#: includes/settings.php:136
105-
#@ post-duplicator
102+
# @ post-duplicator
103+
#: includes/settings.php:159
106104
msgid "Post Duplicator Settings"
107105
msgstr "Post Duplicator Einstellungen"
108106

109-
#: includes/settings.php:160
110-
#@ post-duplicator
107+
# @ post-duplicator
108+
#: includes/settings.php:183
111109
msgid "Customize the settings for duplicated posts."
112110
msgstr "Konfiguriere die Einstellungen für kopierte \"Posts\"."
113111

112+
# @ post-duplicator
113+
#: includes/edit.php:22
114+
#, php-format
115+
msgid "Duplicate %1$s to %2$s"
116+
msgstr "Doppelte %1$s auf %2$s"
117+
118+
# @ post-duplicator
119+
#: includes/functions.php:18 includes/settings.php:66
120+
msgid "Copy"
121+
msgstr "Kopieren"
122+
123+
# @ post-duplicator
124+
#: includes/notices.php:20
125+
msgid "here"
126+
msgstr "hier"
127+
128+
# @ post-duplicator
129+
#: includes/notices.php:21
130+
#, php-format
131+
msgid "Successfully Duplicated! You can edit your new %1$s %2$s."
132+
msgstr "Erfolgreich dupliziert! Sie können Ihre neue %1$s %2$s bearbeiten."
133+
134+
# @ post-duplicator
135+
#: includes/settings.php:12 includes/settings.php:13
136+
msgid "Post Duplicator"
137+
msgstr "Post-Duplizierer"
138+
139+
# @ post-duplicator
140+
#: includes/settings.php:44
141+
msgid "Post Type"
142+
msgstr "Beitragstyp"
143+
144+
# @ post-duplicator
145+
#: includes/settings.php:62
146+
msgid "Duplicate Title"
147+
msgstr "Doppelte Titel"
148+
149+
# @ post-duplicator
150+
#: includes/settings.php:63
151+
msgid "String that should be appended to the duplicate post's title"
152+
msgstr "Zeichenfolge, die an den doppelten Post-Titel angefügt werden soll"
153+
154+
# @ post-duplicator
155+
#: includes/settings.php:70
156+
msgid "Duplicate Slug"
157+
msgstr "Doppelte Schnecke"
158+
159+
# @ post-duplicator
160+
#: includes/settings.php:71
161+
msgid "String that should be appended to the duplicate post's slug"
162+
msgstr "Zeichenfolge, die an den doppelten Post Flug angefügt werden soll"

Diff for: languages/post-duplicator-fr.mo

1.75 KB
Binary file not shown.

0 commit comments

Comments
 (0)