Compare commits

...
Sign in to create a new pull request.

15 commits

Author SHA1 Message Date
Matěj Cepl
73aa093c0f Actually don't forget to add new sources. 2011-06-29 21:32:43 +02:00
Matěj Cepl
7fff699c89 New upstream release. 2011-06-29 21:30:31 +02:00
Matěj Cepl
a7b92a8414 Merge branch 'el6' into f13 2011-06-02 14:40:00 +02:00
Matěj Cepl
622441d177 Merge branch 'master' into f13 2011-06-01 21:01:03 +02:00
Matěj Cepl
a94ce28b5e Merge branch 'master' into f13 2011-05-02 16:26:56 +02:00
Jon Ciesla
d53770ea42 Merge branch 'f14' into f13 2011-03-21 09:34:43 -05:00
Jon Ciesla
ea38f9f434 Spec error. 2011-03-21 09:26:48 -05:00
Jon Ciesla
8c600ef208 Spec error. 2011-03-21 09:25:14 -05:00
Jon Ciesla
95570ae122 Merge branch 'f15' into f14
Conflicts:
	wordpress-debian_patches_hello.patch
	wordpress.spec
2011-03-21 09:22:31 -05:00
Jon Ciesla
6ad0713bb3 Merge branch 'f14' into f13 2011-01-11 11:02:00 -06:00
Jon Ciesla
498511599b Fix for BZ 666782. 2011-01-11 10:55:45 -06:00
Jon Ciesla
f051692f8f Merge branch 'f14' into f13 2010-12-23 09:07:20 -06:00
Jon Ciesla
8ff4ce2bdf Multiple fixes. 2010-12-23 09:02:21 -06:00
Fedora Release Engineering
66439e29b8 dist-git conversion 2010-07-29 15:23:41 +00:00
Jesse Keating
9c954c402f Initialize branch F-13 for wordpress 2010-02-17 03:27:35 +00:00
5 changed files with 110 additions and 3 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@ wordpress-3.0.1.tar.gz
/wordpress-3.1.1.tar.gz
/wordpress-3.1.2.tar.gz
/wordpress-3.1.3.tar.gz
/wordpress-3.1.4.tar.gz

View file

@ -1 +1 @@
dd0323f13f5b1c44636bb3db5ca1c717 wordpress-3.1.3.tar.gz
b6289783d88c965986a918e3d940e05e wordpress-3.1.4.tar.gz

View 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) );
}
}
}

View 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( '/:|&#0*58;|&#x0*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;

View file

@ -1,9 +1,9 @@
Summary: Blog tool and publishing platform
URL: http://www.wordpress.org
Name: wordpress
Version: 3.1.3
Version: 3.1.4
Group: Applications/Publishing
Release: 3%{?dist}
Release: 1%{?dist}
License: GPLv2
Source0: http://wordpress.org/%{name}-%{version}.tar.gz
Source1: wordpress-httpd-conf
@ -107,6 +107,9 @@ rm -rf ${RPM_BUILD_ROOT}
%dir %{_sysconfdir}/wordpress
%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
- 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.