mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
revert r48945, as it break for some conditions
This commit is contained in:
parent
1c9a14159e
commit
3edc0f3080
@ -25,7 +25,6 @@ class etemplate_widget_url extends etemplate_widget
|
||||
* + "<rb@stylite.de>" or "rb@stylite.de"
|
||||
* + '"Becker, Ralf" <rb@stylite.de>'
|
||||
* + "'Becker, Ralf' <rb@stylite.de>"
|
||||
* + "Ralf Becker <rb@stylite.de"
|
||||
* but NOT:
|
||||
* - "Becker, Ralf <rb@stylite.de>" (contains comma outside " or ' enclosed block)
|
||||
* - "Becker < Ralf <rb@stylite.de>" (contains < ----------- " ---------------)
|
||||
@ -34,7 +33,7 @@ class etemplate_widget_url extends etemplate_widget
|
||||
*
|
||||
* Same preg is in et2_widget_url Javascript class, but no \x00 allowed and /u modifier for utf8!
|
||||
*/
|
||||
const EMAIL_PREG = "/^(([^\042',<][^,<]+|\042[^\042]+\042|\'[^\']+\'|\042[^\042]+)\s?<)?[^\x00-\x20()<>@,;:\042\[\]]+@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}>?\042?$/iu";
|
||||
const EMAIL_PREG = "/^(([^\042',<][^,<]+|\042[^\042]+\042|\'[^\']+\'|)\s?<)?[^\x01-\x20()<>@,;:\042\[\]]+@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}>?$/iu";
|
||||
|
||||
/**
|
||||
* Validate input
|
||||
|
@ -38,7 +38,6 @@ var et2_url = et2_textbox.extend(
|
||||
* + "<rb@stylite.de>" or "rb@stylite.de"
|
||||
* + '"Becker, Ralf" <rb@stylite.de>'
|
||||
* + "'Becker, Ralf' <rb@stylite.de>"
|
||||
* + "Ralf Becker <rb@stylite.de"
|
||||
* but NOT:
|
||||
* - "Becker, Ralf <rb@stylite.de>" (contains comma outside " or ' enclosed block)
|
||||
* - "Becker < Ralf <rb@stylite.de>" (contains < ----------- " ---------------)
|
||||
@ -49,7 +48,7 @@ var et2_url = et2_textbox.extend(
|
||||
*
|
||||
* Same preg is in etemplate_widget_url PHP class!
|
||||
*/
|
||||
EMAIL_PREG: new RegExp(/^(([^\042',<][^,<]+|\042[^\042]+\042|\'[^\']+\'|\042[^\042]+)\s?<)?[^\x00-\x20()<>@,;:\042\[\]]+@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}>?\042?$/i),
|
||||
EMAIL_PREG: new RegExp(/^(([^\042',<][^,<]+|\042[^\042]+\042|\'[^\']+\'|)\s?<)?[^\x00-\x20()<>@,;:\042\[\]]+@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}>?$/i),
|
||||
/**
|
||||
* @memberOf et2_url
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user