Changeset 343:f9fcb964c910 for inc/admin
- Timestamp:
- 06/07/11 08:57:44 (14 years ago)
- Branch:
- default
- Parents:
- 342:a5d04d2da753 (diff), 341:796cb01c7120 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r321 r343 16 16 class dcPage 17 17 { 18 private static $loaded_js=array(); 19 18 20 # Auth check 19 21 public static function check($permissions) … … 349 351 public static function jsLoad($src) 350 352 { 351 return '<script type="text/javascript" src="'.html::escapeHTML($src).'"></script>'."\n"; 353 $escaped_src = html::escapeHTML($src); 354 if (!isset(self::$loaded_js[$escaped_src])) { 355 self::$loaded_js[$escaped_src]=true; 356 return '<script type="text/javascript" src="'.$escaped_src.'"></script>'."\n"; 357 } 352 358 } 353 359 … … 360 366 { 361 367 return 368 self::jsLoad('js/jquery/jquery.js'). 362 369 self::jsLoad('js/jquery/jquery.js'). 363 370 self::jsLoad('js/jquery/jquery.biscuit.js'). -
inc/admin/lib.dc.page.php
r342 r343 272 272 } else { 273 273 $prof_url = http::getSelfURI(); 274 $prof_url .= (strpos($prof_url,'?') === false) ? '?' : '& amp;';274 $prof_url .= (strpos($prof_url,'?') === false) ? '?' : '&'; 275 275 $prof_url .= 'XDEBUG_PROFILE'; 276 $res .= '<p><a href="'. $prof_url.'">Trigger profiler</a></p>';276 $res .= '<p><a href="'.html::escapeURL($prof_url).'">Trigger profiler</a></p>'; 277 277 } 278 278
Note: See TracChangeset
for help on using the changeset viewer.