WordPress.org

Make WordPress Core

Ticket #10733: rewrite.php.diff

File rewrite.php.diff, 500 bytes (added by sirzooro, 10 years ago)
  • rewrite.php

    old new  
    12761276                        }
    12771277                }
    12781278
     1279                // Escape dollars in permalinks to avoid possible code injection later
     1280                $permalink_structure = str_replace('$', '\$', $permalink_structure);
    12791281                //get everything up to the first rewrite tag
    12801282                $front = substr($permalink_structure, 0, strpos($permalink_structure, '%'));
    12811283                //build an array of the tags (note that said array ends up being in $tokens[0])