Dotclear

Changeset 343:f9fcb964c910 for inc/admin


Ignore:
Timestamp:
06/07/11 08:57:44 (14 years ago)
Author:
Dsls <dsls@…>
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.
Message:

Merged with 2.3 latest bugfixes

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r321 r343  
    1616class dcPage 
    1717{ 
     18     private static $loaded_js=array(); 
     19 
    1820     # Auth check 
    1921     public static function check($permissions) 
     
    349351     public static function jsLoad($src) 
    350352     { 
    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          } 
    352358     } 
    353359      
     
    360366     { 
    361367          return 
     368          self::jsLoad('js/jquery/jquery.js'). 
    362369          self::jsLoad('js/jquery/jquery.js'). 
    363370          self::jsLoad('js/jquery/jquery.biscuit.js'). 
  • inc/admin/lib.dc.page.php

    r342 r343  
    272272               } else { 
    273273                    $prof_url = http::getSelfURI(); 
    274                     $prof_url .= (strpos($prof_url,'?') === false) ? '?' : '&amp;'; 
     274                    $prof_url .= (strpos($prof_url,'?') === false) ? '?' : '&'; 
    275275                    $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>'; 
    277277               } 
    278278                
Note: See TracChangeset for help on using the changeset viewer.

Sites map