WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Wieder einmal: Slash / im Adressfeld
  • Print
Pages: [1]   Go Down

Author Topic: Wieder einmal: Slash / im Adressfeld  (Read 4371 times)

fischstäbchenbrenner

  • Guest
Wieder einmal: Slash / im Adressfeld
« on: August 30, 2016, 02:40:18 PM »
In Österreich sind Adressen mit Slash üblich.
zb ich: Mittelgasse 13/11

Was muss ich ändern, damit ein Slash erlaubt ist?
Logged

freeSbee

  • Guest
Re: Wieder einmal: Slash / im Adressfeld
« Reply #1 on: August 30, 2016, 04:52:39 PM »
Hallo Chio

Datei save_form.php ca. Zeile 124:
Code: [Select]
if (strpos($field, 'street') !== false) {
if (!preg_match('#^[\p{Latin}'.$us.'0-9.,\s\-]{1,50}$#u', $value)) {
$error_bg[] = $field;
$errors[]   = htmlspecialchars($value, ENT_QUOTES).' '.$MOD_BAKERY['ERR_INVAL_STREET'];
}
}

ersetzen durch:
Code: [Select]
if (strpos($field, 'street') !== false) {
if (!preg_match('#^[\p{Latin}'.$us.'0-9.,/\s\-]{1,50}$#u', $value)) {
$error_bg[] = $field;
$errors[]   = htmlspecialchars($value, ENT_QUOTES).' '.$MOD_BAKERY['ERR_INVAL_STREET'];
}
}

Gruss Christoph
Logged

fischstäbchenbrenner

  • Guest
Re: Wieder einmal: Slash / im Adressfeld
« Reply #2 on: August 31, 2016, 09:53:08 AM »
Danke - funktioniert!
Vielleicht als kleine Anregung: In Österreich werden noch lange Zeit Slashes in Adressen üblich sein - und niemand würde den angemeckerten Fehler als solchen erkennen.

Vielleicht in der nächsten Version erlauben?
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Wieder einmal: Slash / im Adressfeld
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2