[TEP-COMMIT] [CVS catalog] remove the stripslashes call from tep_get_all_get_params
anonymous-OfajU3CKLf1/[email protected] 22 Jul 2004 16:53:54 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit in catalog/catalog/includes/functions on MAIN
general.php +23 -10 1.240 -> 1.241
remove the stripslashes call from tep_get_all_get_params
----------
catalog /catalog /includes /functions
general.php 1.240 -> 1.241
diff -u -r1.240 -r1.241
--- general.php 2004/05/12 19:34:34 1.240
+++ general.php 2004/07/22 16:53:53 1.241
@@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
- Copyright (c) 2003 osCommerce
+ Copyright (c) 2004 osCommerce
Released under the GNU General Public License
*/
@@ -179,7 +179,7 @@
reset($_GET);
while (list($key, $value) = each($_GET)) {
if ( (is_string($value) && (strlen($value) > 0)) && ($key != $osC_Session->name) && ($key != 'error') && (!in_array($key, $exclude_array)) && ($key != 'x') && ($key != 'y') ) {
- $get_url .= $key . '=' . rawurlencode(stripslashes($value)) . '&';
+ $get_url .= $key . '=' . rawurlencode($value) . '&';
}
}
}
@@ -1288,11 +1288,11 @@
// validate domain
if (eregi($ip_domain_pat, $domain, $ip_components)) {
// this is an IP address
- for ($i=1;$i<=4;$i++) {
- if ($ip_components[$i] > 255) {
- $valid_address = false;
- break;
- }
+ for ($i=1;$i<=4;$i++) {
+ if ($ip_components[$i] > 255) {
+ $valid_address = false;
+ break;
+ }
}
}
else {
@@ -1329,9 +1329,9 @@
}
}
else {
- $valid_address = false;
- }
- }
+ $valid_address = false;
+ }
+ }
}
else {
$valid_address = false;
@@ -1372,5 +1372,18 @@
// If the total has no remainder it's OK
return ($numSum % 10 == 0);
+ }
+
+////
+// Creates a pull-down list of countries
+ function tep_get_country_list($name, $selected = '', $parameters = '', $required = false) {
+ $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
+ $countries = tep_get_countries();
+
+ for ($i=0, $n=sizeof($countries); $i<$n; $i++) {
+ $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);
+ }
+
+ return osc_draw_pull_down_menu($name, $countries_array, $selected, $parameters, $required);
}
?>
CVSspam 0.2.8
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click