[wp-trac] [WordPress Trac] #16940: Prevent 403 errors in Press This

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 22 23:54:38 UTC 2011


#16940: Prevent 403 errors in Press This
--------------------------+----------------------------
 Reporter:  scribu        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Press This    |    Version:
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+----------------------------
 The problem:

 Some hosts have lame mod_security rules that block unencoded urls, making
 Press This unusable.

 Source: http://forums.hostgator.com/apache-upgrade-broke-feature-
 wordpress-t40603.html

 The fix:

 Replace:

 {{{u='+e(l.href)+'}}}

 With:

 {{{u='+e(l.href.replace(/\//g,'\\/'))+'}}}

 Source: http://wordpress.org/support/topic/press-this-results-
 in-404?replies=22#post-1008326

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16940>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list