Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

pilvinen

Pioneers
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Real Name
    pilv

pilvinen's Achievements

  1. // Clean post vars function clean_var ($vars) { if (!is_array($vars)) { return preg_replace("/[^\w\r@ :{}öäåÖÄÅ_.-]/i", "", urldecode($vars)); } else { return array_map('clean_var', $vars); } } By removing the \p{L} and \p{M} and adding öäåÅÖÄ it now seems to be working. The L seems to be any unicode letter, right? But I have no idea what the M, Mark, stands for. The problem with unicode specs is that it's sooo confusing, there is just too much to read. Is there any reason why doing the above is stupid or is this fine? It does seem to work at least in contact us and reviews.
  2. My charset is ISO-8859-1. I suppose the server supports unicode... I've been trying to add the letter to the exclude list, but it seems I don't know how to do it. Should be simple in theory, but what ever I try I don't get the result I want. // Clean post vars function clean_var ($vars) { if (!is_array($vars)) { return preg_replace("/[^\p{L}\p{M}\w\r@ :{}ö_.-]/i", "", urldecode($vars)); } else { return array_map('clean_var', $vars); } } This just won't do it and after some 3 hours of reading about reg expressions I'm just getting very very tired about this whole matter ... Some help would be appreciated :-)
  3. I'm having trouble with the clean_post function in includes/functions/account_secure.php. It removes all the "ö" but _only_ lower case "ö" is affected. "ÅÄääÖ" are all fine. Any suggestions what I could do?
  4. Greetings. There exists an issue with osCsid I haven't been able to get around. This problem only exists when oscthumb is enabled and session cookies are off. If I bookmark a product page, clear my browser cache and open up the link -> I click on a product image and what I get is "forbidden parameter: osCsid" and I need to click on some other link first so that oscommerce hides the osCsid, but it always appears on the first page load in every link on the page at the start of a new session, so it's trouble. Anyway, isn't there a way to make oscthumb simply ignore or remove the "?osCsid=blahblahblah" part of the url instead of giving this nasty error message? I'm not quite sure if this is the right forum for this since it's somewhat oscthumb related, so do forgive me if it's a terrible bother. May the sun shine on you all.
×
×
  • Create New...