WordPress.org

Make WordPress Core

Ticket #16940: 16940.diff

File 16940.diff, 663 bytes (added by jacobwg, 3 years ago)

Patch to fix issue with PressThis and mod_security

  • wp-includes/link-template.php

     
    19061906                        f='" . admin_url('press-this.php') . "', 
    19071907                        l=d.location, 
    19081908                        e=encodeURIComponent, 
    1909                         u=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=4'; 
     1909                        u=f+'?u='+e(l.href.replace(/\//g,'\\/'))+'&t='+e(d.title)+'&s='+e(s)+'&v=4'; 
    19101910                        a=function(){if(!w.open(u,'t','toolbar=0,resizable=1,scrollbars=1,status=1,width=720,height=570'))l.href=u;}; 
    19111911                        if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0); else a(); 
    19121912                        void(0)";