Bläddra i källkod

fix security bug

Ralf S. Engelschall 18 år sedan
förälder
incheckning
461eb474d0
2 ändrade filer med 13 tillägg och 1 borttagningar
  1. 12 0
      wordpress/wordpress.patch
  2. 1 1
      wordpress/wordpress.spec

+ 12 - 0
wordpress/wordpress.patch

@@ -43,3 +43,15 @@ Index: wp-mail.php
  
  	$post_data = compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category', 'post_status');
  	$post_data = add_magic_quotes($post_data);
+Index: xmlrpc.php
+--- xmlrpc.php.orig	2007-05-11 23:40:15 +0200
++++ xmlrpc.php	2007-06-08 16:07:27 +0200
+@@ -538,7 +538,7 @@
+ 		$username				= $args[1];
+ 		$password				= $args[2];
+ 		$category				= $args[3];
+-		$max_results			= $args[4];
++		$max_results			= (int) $args[4];
+ 
+ 		if(!$this->login_pass_ok($username, $password)) {
+ 			return($this->error);

+ 1 - 1
wordpress/wordpress.spec

@@ -46,7 +46,7 @@ Class:        PLUS
 Group:        CMS
 License:      GPL
 Version:      %{V_wordpress}
-Release:      20070531
+Release:      20070608
 
 #   list of sources
 Source0:      http://wordpress.org/wordpress-%{V_wordpress}.tar.gz