Compare commits
15 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73aa093c0f | ||
|
|
7fff699c89 | ||
|
|
a7b92a8414 | ||
|
|
622441d177 | ||
|
|
a94ce28b5e | ||
|
|
d53770ea42 | ||
|
|
ea38f9f434 | ||
|
|
8c600ef208 | ||
|
|
95570ae122 | ||
|
|
6ad0713bb3 | ||
|
|
498511599b | ||
|
|
f051692f8f | ||
|
|
8ff4ce2bdf | ||
|
|
66439e29b8 | ||
|
|
9c954c402f |
5 changed files with 110 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -6,3 +6,4 @@ wordpress-3.0.1.tar.gz
|
||||||
/wordpress-3.1.1.tar.gz
|
/wordpress-3.1.1.tar.gz
|
||||||
/wordpress-3.1.2.tar.gz
|
/wordpress-3.1.2.tar.gz
|
||||||
/wordpress-3.1.3.tar.gz
|
/wordpress-3.1.3.tar.gz
|
||||||
|
/wordpress-3.1.4.tar.gz
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
dd0323f13f5b1c44636bb3db5ca1c717 wordpress-3.1.3.tar.gz
|
b6289783d88c965986a918e3d940e05e wordpress-3.1.4.tar.gz
|
||||||
|
|
|
||||||
11
wordpress-2.8.6-r16625.patch
Normal file
11
wordpress-2.8.6-r16625.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
--- wp-includes/comment.php~ 2009-07-21 18:10:34.000000000 -0500
|
||||||
|
+++ wp-includes/comment.php 2010-12-23 08:55:05.433027996 -0600
|
||||||
|
@@ -1365,7 +1365,7 @@
|
||||||
|
trackback($tb_ping, $post_title, $excerpt, $post_id);
|
||||||
|
$pinged[] = $tb_ping;
|
||||||
|
} else {
|
||||||
|
- $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET to_ping = TRIM(REPLACE(to_ping, '$tb_ping', '')) WHERE ID = %d", $post_id) );
|
||||||
|
+ $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET to_ping = TRIM(REPLACE(to_ping, %s, '')) WHERE ID = %d", $tb_ping, $post_id) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
92
wordpress-2.8.6-r17172.patch
Normal file
92
wordpress-2.8.6-r17172.patch
Normal file
|
|
@ -0,0 +1,92 @@
|
||||||
|
diff -r -U2 wordpress.orig/wp-includes/formatting.php wordpress/wp-includes/formatting.php
|
||||||
|
--- wordpress.orig/wp-includes/formatting.php 2009-11-11 17:10:13.000000000 -0600
|
||||||
|
+++ wordpress/wp-includes/formatting.php 2011-01-11 10:34:13.970920002 -0600
|
||||||
|
@@ -2092,6 +2092,7 @@
|
||||||
|
// Replace ampersands and single quotes only when displaying.
|
||||||
|
if ( 'display' == $context ) {
|
||||||
|
- $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url);
|
||||||
|
- $url = str_replace( "'", ''', $url );
|
||||||
|
+ $url = wp_kses_normalize_entities( $url );
|
||||||
|
+ $url = str_replace( '&', '&', $url );
|
||||||
|
+ $url = str_replace( "'", ''', $url );
|
||||||
|
}
|
||||||
|
|
||||||
|
diff -r -U2 wordpress.orig/wp-includes/kses.php wordpress/wp-includes/kses.php
|
||||||
|
--- wordpress.orig/wp-includes/kses.php 2009-07-08 04:53:22.000000000 -0500
|
||||||
|
+++ wordpress/wp-includes/kses.php 2011-01-11 10:47:04.468920001 -0600
|
||||||
|
@@ -534,5 +534,5 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
- if ( $arreach['name'] == 'style' ) {
|
||||||
|
+ if ( strtolower($arreach['name']) == 'style' ) {
|
||||||
|
$orig_value = $arreach['value'];
|
||||||
|
|
||||||
|
@@ -626,5 +626,5 @@
|
||||||
|
{
|
||||||
|
$thisval = $match[1];
|
||||||
|
- if ( in_array($attrname, $uris) )
|
||||||
|
+ if ( in_array(strtolower($attrname), $uris) )
|
||||||
|
$thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
|
||||||
|
|
||||||
|
@@ -642,5 +642,5 @@
|
||||||
|
{
|
||||||
|
$thisval = $match[1];
|
||||||
|
- if ( in_array($attrname, $uris) )
|
||||||
|
+ if ( in_array(strtolower($attrname), $uris) )
|
||||||
|
$thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
|
||||||
|
|
||||||
|
@@ -658,5 +658,5 @@
|
||||||
|
{
|
||||||
|
$thisval = $match[1];
|
||||||
|
- if ( in_array($attrname, $uris) )
|
||||||
|
+ if ( in_array(strtolower($attrname), $uris) )
|
||||||
|
$thisval = wp_kses_bad_protocol($thisval, $allowed_protocols);
|
||||||
|
|
||||||
|
@@ -882,12 +882,7 @@
|
||||||
|
*/
|
||||||
|
function wp_kses_bad_protocol_once($string, $allowed_protocols) {
|
||||||
|
- global $_kses_allowed_protocols;
|
||||||
|
- $_kses_allowed_protocols = $allowed_protocols;
|
||||||
|
-
|
||||||
|
- $string2 = preg_split('/:|:|:/i', $string, 2);
|
||||||
|
- if ( isset($string2[1]) && !preg_match('%/\?%', $string2[0]) )
|
||||||
|
- $string = wp_kses_bad_protocol_once2($string2[0]) . trim($string2[1]);
|
||||||
|
- else
|
||||||
|
- $string = preg_replace_callback('/^((&[^;]*;|[\sA-Za-z0-9])*)'.'(:|:|&#[Xx]3[Aa];)\s*/', 'wp_kses_bad_protocol_once2', $string);
|
||||||
|
+ $string2 = preg_split( '/:|�*58;|�*3a;/i', $string, 2 );
|
||||||
|
+ if ( isset($string2[1]) && ! preg_match('%/\?%', $string2[0]) )
|
||||||
|
+ $string = wp_kses_bad_protocol_once2( $string2[0], $allowed_protocols ) . trim( $string2[1] );
|
||||||
|
|
||||||
|
return $string;
|
||||||
|
@@ -903,19 +898,9 @@
|
||||||
|
* @since 1.0.0
|
||||||
|
*
|
||||||
|
- * @param mixed $matches string or preg_replace_callback() matches array to check for bad protocols
|
||||||
|
+ * @param string $string URI scheme to check against the whitelist
|
||||||
|
+ * @param string $allowed_protocols Allowed protocols
|
||||||
|
* @return string Sanitized content
|
||||||
|
*/
|
||||||
|
-function wp_kses_bad_protocol_once2($matches) {
|
||||||
|
- global $_kses_allowed_protocols;
|
||||||
|
-
|
||||||
|
- if ( is_array($matches) ) {
|
||||||
|
- if ( ! isset($matches[1]) || empty($matches[1]) )
|
||||||
|
- return '';
|
||||||
|
-
|
||||||
|
- $string = $matches[1];
|
||||||
|
- } else {
|
||||||
|
- $string = $matches;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
+function wp_kses_bad_protocol_once2( $string, $allowed_protocols ) {
|
||||||
|
$string2 = wp_kses_decode_entities($string);
|
||||||
|
$string2 = preg_replace('/\s/', '', $string2);
|
||||||
|
@@ -926,6 +911,6 @@
|
||||||
|
|
||||||
|
$allowed = false;
|
||||||
|
- foreach ( (array) $_kses_allowed_protocols as $one_protocol)
|
||||||
|
- if (strtolower($one_protocol) == $string2) {
|
||||||
|
+ foreach ( (array) $allowed_protocols as $one_protocol )
|
||||||
|
+ if ( strtolower($one_protocol) == $string2 ) {
|
||||||
|
$allowed = true;
|
||||||
|
break;
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
Summary: Blog tool and publishing platform
|
Summary: Blog tool and publishing platform
|
||||||
URL: http://www.wordpress.org
|
URL: http://www.wordpress.org
|
||||||
Name: wordpress
|
Name: wordpress
|
||||||
Version: 3.1.3
|
Version: 3.1.4
|
||||||
Group: Applications/Publishing
|
Group: Applications/Publishing
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Source0: http://wordpress.org/%{name}-%{version}.tar.gz
|
Source0: http://wordpress.org/%{name}-%{version}.tar.gz
|
||||||
Source1: wordpress-httpd-conf
|
Source1: wordpress-httpd-conf
|
||||||
|
|
@ -107,6 +107,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||||
%dir %{_sysconfdir}/wordpress
|
%dir %{_sysconfdir}/wordpress
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 29 2011 Matěj Cepl <mcepl@redhat.com> - 3.1.4-1
|
||||||
|
- New upstream security release.
|
||||||
|
|
||||||
* Thu Jun 02 2011 Matěj Cepl <mcepl@redhat.com> - 3.1.3-3
|
* Thu Jun 02 2011 Matěj Cepl <mcepl@redhat.com> - 3.1.3-3
|
||||||
- Actually, we just don't need gettext.php at all, it is provided by
|
- Actually, we just don't need gettext.php at all, it is provided by
|
||||||
php itself. Just remove the file, don't make a symlink.
|
php itself. Just remove the file, don't make a symlink.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue