WordPress.org

Make WordPress Core

Changeset 22365


Ignore:
Timestamp:
11/05/12 14:13:29 (3 years ago)
Author:
ryan
Message:

preg_quote() the permalink structure so that regex special chars such as dots are correctly handled. Props SergeyBiryukov. fixes #21167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/rewrite.php

    r22042 r22365  
    12511251            } 
    12521252        } 
     1253 
     1254        $permalink_structure = preg_quote( $permalink_structure ); 
    12531255 
    12541256        //get everything up to the first rewrite tag 
Note: See TracChangeset for help on using the changeset viewer.