Make WordPress Core


Ignore:
Timestamp:
08/19/2008 03:21:12 AM (16 years ago)
Author:
markjaquith
Message:

Strip trailing spaces in URLs, redirect to canonical URL. fixes #7537

File:
1 edited

Legend:

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

    r8646 r8667  
    525525        $qv['m'] = absint($qv['m']);
    526526        $qv['cat'] = preg_replace( '|[^0-9,-]|', '', $qv['cat'] ); // comma separated list of positive or negative integers
     527        $qv['pagename'] = trim( $qv['pagename'] );
     528        $qv['name'] = trim( $qv['name'] );
    527529        if ( '' !== $qv['hour'] ) $qv['hour'] = absint($qv['hour']);
    528530        if ( '' !== $qv['minute'] ) $qv['minute'] = absint($qv['minute']);
Note: See TracChangeset for help on using the changeset viewer.