Make WordPress Core


Ignore:
Timestamp:
03/24/2009 03:27:17 PM (17 years ago)
Author:
ryan
Message:

Validation fixes. Props Viper007Bond. fixes #9387

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r10823 r10832  
    610610        $ver = md5("$wp_scripts->concat_version");
    611611        $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&load=" . trim($wp_scripts->concat, ', ') . "&ver=$ver";
    612         echo "<script type='text/javascript' src='$src'></script>\n";
     612        echo "<script type='text/javascript' src='" . attribute_escape($src) . "'></script>\n";
    613613    }
    614614
     
    677677            $ver = md5("$wp_styles->concat_version{$dir}");
    678678            $href = $wp_styles->base_url . "/wp-admin/load-styles.php?c={$zip}&dir={$dir}&load=" . trim($wp_styles->concat, ', ') . "&ver=$ver";
    679             echo "<link rel='stylesheet' href='$href' type='text/css' media='all' />\n";
     679            echo "<link rel='stylesheet' href='" . attribute_escape($href) . "' type='text/css' media='all' />\n";
    680680        }
    681681
Note: See TracChangeset for help on using the changeset viewer.