Changeset 230 for branches/awmn/globals/functions.php
- Timestamp:
- 01/09/2010 05:02:33 PM (2 years ago)
- File:
-
- 1 edited
-
branches/awmn/globals/functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/awmn/globals/functions.php
r229 r230 4 4 * 5 5 * Copyright (C) 2005 Nikolaos Nikalexis <winner@cube.gr> 6 * Copyright (C) 2009 Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>6 * Copyright (C) 2009-2010 Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr> 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify … … 39 39 } 40 40 41 function get_qs() { 41 function get_qs($htmlspecialchars=TRUE) { 42 $ret = ""; 42 43 if ($_SERVER['REQUEST_METHOD'] == 'GET') { 43 return $_SERVER['QUERY_STRING']; 44 } else { 45 return $_POST['query_string']; 46 } 44 $ret = $_SERVER['QUERY_STRING']; 45 } else { 46 $ret = $_POST['query_string']; 47 } 48 return ($htmlspecialchars?htmlspecialchars($ret):$ret); 47 49 } 48 50 … … 105 107 if(get('show_map') == "no") $o = array_merge($o,array("show_map" => "no")); 106 108 if ($cur_qs == TRUE) { 107 parse_str(get_qs( ), $qs);109 parse_str(get_qs(FALSE), $qs); 108 110 $o = array_merge($o, $qs); 109 111 } … … 338 340 if ($gmap_key == '') return FALSE; 339 341 340 $main->html->head->add_script("text/javascript", "http://".$vars['gmap']['server']."/maps?file=api&v=".$vars['gmap']['api']."&key=".$gmap_key."&hl=".$lang["iso639"]);342 $main->html->head->add_script("text/javascript", htmlspecialchars("http://".$vars['gmap']['server']."/maps?file=api&v=".$vars['gmap']['api']."&key=".$gmap_key."&hl=".$lang["iso639"])); 341 343 $main->html->head->add_script("text/javascript", $javascript); 342 344 $main->html->head->add_extra(
Note: See TracChangeset
for help on using the changeset viewer.
