Ticket #19922: 19922.with-filter.diff

File 19922.with-filter.diff, 421 bytes (added by westi, 14 months ago)

Simple patch to remove the encoding but allow for a plugin to encode it if needed using a filter

Line 
1Index: class-http.php
2===================================================================
3--- class-http.php      (revision 20371)
4+++ class-http.php      (working copy)
5@@ -1540,7 +1540,7 @@
6                if ( empty( $this->name ) || empty( $this->value ) )
7                        return '';
8 
9-               return $this->name . '=' . urlencode( $this->value );
10+               return $this->name . '=' . apply_filters( 'wp_http_cookie_value', $this->value, $this-name );
11        }
12 
13        /**