Re: Rejecting Certain Non-ASCII Characters [message #181222 is a reply to message #181220] |
Sun, 21 April 2013 04:51 |
Arno Welzel
Messages: 317 Registered: October 2011
Karma: 0
|
Senior Member |
|
|
Jerry Stuckle, 2013-04-21 02:03:
> On 4/20/2013 3:29 PM, Arno Welzel wrote:
>> Jerry Stuckle, 2013-04-20 15:04:
>>
>>> On 4/20/2013 8:55 AM, Arno Welzel wrote:
>>>> Jerry Stuckle, 2013-04-20 14:43:
>>>>
>>>> > On 4/20/2013 8:41 AM, Arno Welzel wrote:
>>>> >> M. Strobel, 2013-04-20 14:26:
>>>> >>
>>>> >> [...]
>>>> >>> My code can be easily adapted. And then:
>>>> >>>
>>>> >>> Wall Street Journal online
>>>> >>>
>>>> >>> http://online.wsj.com/article/SB10001424052748704805204575594423931135084.h tml#
>>>> >>>
>>>> >>> or Reuters
>>>> >>>
>>>> >>> http://www.reuters.com/article/2011/03/17/us-eu-internet-privacy-idUSTRE72G 48Z20110317
>>>> >>
>>>> >> If you don't want to use a valid address, then use
>>>> >>
>>>> >> <invalid(at)invalid(dot)invalid>
>>>> >>
>>>> >> Also see <http://www.individual.de/faq.php#5.3>
>>>> >>
>>>> >> Did you get it now?
>>>> >>
>>>> >>
>>>> >
>>>> > What does this have to do with PHP, troll?
>>>>
>>>> You forgot to ask this M. Strobel and Thomas Lahn as well...
>>>>
>>>>
>>>
>>> Answer the question, troll. What does this have to do with PHP?
>>
>>
>> <http://www.individual.de/faq.php#5.3> is an example for the use of PHP
>> (PHP 5.3.3 to be precise) ;-)
>>
>>
>
> ROFLMAO, troll. Did you even read it? (Unlike you, I do understand
> German, although I'm a bit rusty since it has been over 40 years...)
>
> You can't even answer the question. How like a troll!
But you even don't understand a joke... but i'm not surprised.
--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
|
|
|
Re: Rejecting Certain Non-ASCII Characters [message #181223 is a reply to message #181222] |
Sun, 21 April 2013 04:57 |
Arno Welzel
Messages: 317 Registered: October 2011
Karma: 0
|
Senior Member |
|
|
Arno Welzel, 2013-04-21 06:51:
> Jerry Stuckle, 2013-04-21 02:03:
>
>> On 4/20/2013 3:29 PM, Arno Welzel wrote:
>>> Jerry Stuckle, 2013-04-20 15:04:
>>>
>>>> On 4/20/2013 8:55 AM, Arno Welzel wrote:
>>>> > Jerry Stuckle, 2013-04-20 14:43:
>>>> >
>>>> >> On 4/20/2013 8:41 AM, Arno Welzel wrote:
>>>> >>> M. Strobel, 2013-04-20 14:26:
>>>> >>>
>>>> >>> [...]
>>>> >>>> My code can be easily adapted. And then:
>>>> >>>>
>>>> >>>> Wall Street Journal online
>>>> >>>>
>>>> >>>> http://online.wsj.com/article/SB10001424052748704805204575594423931135084.h tml#
>>>> >>>>
>>>> >>>> or Reuters
>>>> >>>>
>>>> >>>> http://www.reuters.com/article/2011/03/17/us-eu-internet-privacy-idUSTRE72G 48Z20110317
>>>> >>>
>>>> >>> If you don't want to use a valid address, then use
>>>> >>>
>>>> >>> <invalid(at)invalid(dot)invalid>
>>>> >>>
>>>> >>> Also see <http://www.individual.de/faq.php#5.3>
>>>> >>>
>>>> >>> Did you get it now?
>>>> >>>
>>>> >>>
>>>> >>
>>>> >> What does this have to do with PHP, troll?
>>>> >
>>>> > You forgot to ask this M. Strobel and Thomas Lahn as well...
>>>> >
>>>> >
>>>>
>>>> Answer the question, troll. What does this have to do with PHP?
>>>
>>>
>>> <http://www.individual.de/faq.php#5.3> is an example for the use of PHP
>>> (PHP 5.3.3 to be precise) ;-)
>>>
>>>
>>
>> ROFLMAO, troll. Did you even read it? (Unlike you, I do understand
>> German, although I'm a bit rusty since it has been over 40 years...)
>>
>> You can't even answer the question. How like a troll!
>
> But you even don't understand a joke... but i'm not surprised.
PS: To help you a, if you still don't get it:
GET /faq.php HTTP/1.1
Host: www.individual.de
....
HTTP/1.1 200 OK
Date: Sun, 21 Apr 2013 04:56:22 GMT
Server: Apache/2.2.16 (Debian)
X-Powered-By: PHP/5.3.3-7+squeeze15
--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
|
|
|
Re: Rejecting Certain Non-ASCII Characters [message #181224 is a reply to message #181222] |
Sun, 21 April 2013 12:44 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 4/21/2013 12:51 AM, Arno Welzel wrote:
> Jerry Stuckle, 2013-04-21 02:03:
>
>> On 4/20/2013 3:29 PM, Arno Welzel wrote:
>>> Jerry Stuckle, 2013-04-20 15:04:
>>>
>>>> On 4/20/2013 8:55 AM, Arno Welzel wrote:
>>>> > Jerry Stuckle, 2013-04-20 14:43:
>>>> >
>>>> >> On 4/20/2013 8:41 AM, Arno Welzel wrote:
>>>> >>> M. Strobel, 2013-04-20 14:26:
>>>> >>>
>>>> >>> [...]
>>>> >>>> My code can be easily adapted. And then:
>>>> >>>>
>>>> >>>> Wall Street Journal online
>>>> >>>>
>>>> >>>> http://online.wsj.com/article/SB10001424052748704805204575594423931135084.h tml#
>>>> >>>>
>>>> >>>> or Reuters
>>>> >>>>
>>>> >>>> http://www.reuters.com/article/2011/03/17/us-eu-internet-privacy-idUSTRE72G 48Z20110317
>>>> >>>
>>>> >>> If you don't want to use a valid address, then use
>>>> >>>
>>>> >>> <invalid(at)invalid(dot)invalid>
>>>> >>>
>>>> >>> Also see <http://www.individual.de/faq.php#5.3>
>>>> >>>
>>>> >>> Did you get it now?
>>>> >>>
>>>> >>>
>>>> >>
>>>> >> What does this have to do with PHP, troll?
>>>> >
>>>> > You forgot to ask this M. Strobel and Thomas Lahn as well...
>>>> >
>>>> >
>>>>
>>>> Answer the question, troll. What does this have to do with PHP?
>>>
>>>
>>> <http://www.individual.de/faq.php#5.3> is an example for the use of PHP
>>> (PHP 5.3.3 to be precise) ;-)
>>>
>>>
>>
>> ROFLMAO, troll. Did you even read it? (Unlike you, I do understand
>> German, although I'm a bit rusty since it has been over 40 years...)
>>
>> You can't even answer the question. How like a troll!
>
> But you even don't understand a joke... but i'm not surprised.
>
>
Answer the question, troll!
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|
Re: Rejecting Certain Non-ASCII Characters [message #181225 is a reply to message #181223] |
Sun, 21 April 2013 12:45 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 4/21/2013 12:57 AM, Arno Welzel wrote:
> Arno Welzel, 2013-04-21 06:51:
>
>> Jerry Stuckle, 2013-04-21 02:03:
>>
>>> On 4/20/2013 3:29 PM, Arno Welzel wrote:
>>>> Jerry Stuckle, 2013-04-20 15:04:
>>>>
>>>> > On 4/20/2013 8:55 AM, Arno Welzel wrote:
>>>> >> Jerry Stuckle, 2013-04-20 14:43:
>>>> >>
>>>> >>> On 4/20/2013 8:41 AM, Arno Welzel wrote:
>>>> >>>> M. Strobel, 2013-04-20 14:26:
>>>> >>>>
>>>> >>>> [...]
>>>> >>>>> My code can be easily adapted. And then:
>>>> >>>>>
>>>> >>>>> Wall Street Journal online
>>>> >>>>>
>>>> >>>>> http://online.wsj.com/article/SB10001424052748704805204575594423931135084.h tml#
>>>> >>>>>
>>>> >>>>> or Reuters
>>>> >>>>>
>>>> >>>>> http://www.reuters.com/article/2011/03/17/us-eu-internet-privacy-idUSTRE72G 48Z20110317
>>>> >>>>
>>>> >>>> If you don't want to use a valid address, then use
>>>> >>>>
>>>> >>>> <invalid(at)invalid(dot)invalid>
>>>> >>>>
>>>> >>>> Also see <http://www.individual.de/faq.php#5.3>
>>>> >>>>
>>>> >>>> Did you get it now?
>>>> >>>>
>>>> >>>>
>>>> >>>
>>>> >>> What does this have to do with PHP, troll?
>>>> >>
>>>> >> You forgot to ask this M. Strobel and Thomas Lahn as well...
>>>> >>
>>>> >>
>>>> >
>>>> > Answer the question, troll. What does this have to do with PHP?
>>>>
>>>>
>>>> <http://www.individual.de/faq.php#5.3> is an example for the use of PHP
>>>> (PHP 5.3.3 to be precise) ;-)
>>>>
>>>>
>>>
>>> ROFLMAO, troll. Did you even read it? (Unlike you, I do understand
>>> German, although I'm a bit rusty since it has been over 40 years...)
>>>
>>> You can't even answer the question. How like a troll!
>>
>> But you even don't understand a joke... but i'm not surprised.
>
> PS: To help you a, if you still don't get it:
>
> GET /faq.php HTTP/1.1
> Host: www.individual.de
>
> ...
>
> HTTP/1.1 200 OK
> Date: Sun, 21 Apr 2013 04:56:22 GMT
> Server: Apache/2.2.16 (Debian)
> X-Powered-By: PHP/5.3.3-7+squeeze15
>
>
Answer the question, troll!
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|
Re: Rejecting Certain Non-ASCII Characters [message #181226 is a reply to message #181225] |
Sun, 21 April 2013 14:09 |
Tim Streater
Messages: 328 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
In article <kl0mrd$98a$2(at)dont-email(dot)me>,
Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:
> On 4/21/2013 12:57 AM, Arno Welzel wrote:
>> PS: To help you a, if you still don't get it:
>>
>> GET /faq.php HTTP/1.1
>> Host: www.individual.de
>>
>> ...
>>
>> HTTP/1.1 200 OK
>> Date: Sun, 21 Apr 2013 04:56:22 GMT
>> Server: Apache/2.2.16 (Debian)
>> X-Powered-By: PHP/5.3.3-7+squeeze15
> Answer the question, troll!
Christ on a bicycle, Jerry. Is everyone a troll in your book now? Get a
grip, why don't you.
--
Tim
"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
|
|
|
Re: Rejecting Certain Non-ASCII Characters [message #181227 is a reply to message #181226] |
Sun, 21 April 2013 14:29 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On 4/21/2013 10:09 AM, Tim Streater wrote:
> In article <kl0mrd$98a$2(at)dont-email(dot)me>,
> Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:
>
>> On 4/21/2013 12:57 AM, Arno Welzel wrote:
>
>>> PS: To help you a, if you still don't get it:
>>>
>>> GET /faq.php HTTP/1.1
>>> Host: www.individual.de
>>>
>>> ...
>>>
>>> HTTP/1.1 200 OK
>>> Date: Sun, 21 Apr 2013 04:56:22 GMT
>>> Server: Apache/2.2.16 (Debian)
>>> X-Powered-By: PHP/5.3.3-7+squeeze15
>
>> Answer the question, troll!
>
> Christ on a bicycle, Jerry. Is everyone a troll in your book now? Get a
> grip, why don't you.
>
Just the trolls, Timmy.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|
Re: Rejecting Certain Non-ASCII Characters [message #181230 is a reply to message #181177] |
Mon, 22 April 2013 11:25 |
Christoph Becker
Messages: 91 Registered: June 2012
Karma: 0
|
Member |
|
|
Thomas 'PointedEars' Lahn wrote:
> A numeric column is *your* idea. The questions I have answered were the
> ones that were *actually* asked:
>
> | Is there a simple way in PHP to restrict input to the ASCII Character
> | set, specifically hex 0x20 - 0x7E ? Or a simple way to detect
> | characters outside this range before committing them to the database?
The OP had reported that users sometimes enter a slashed zero instead of
a "normal" zero. In a column of type "char" or "varchar" this might not
matter too much, so I thought the problem might be related to numeric
columns instead. Therefore, I had written:
| If you're dealing with a numeric column, [...]
^^
--
Christoph M. Becker
|
|
|
Re: Rejecting Certain Non-ASCII Characters [message #181231 is a reply to message #181230] |
Mon, 22 April 2013 11:29 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma: 0
|
Senior Member |
|
|
Christoph Becker wrote:
> Thomas 'PointedEars' Lahn wrote:
>> A numeric column is *your* idea. The questions I have answered were the
>> ones that were *actually* asked:
>>
>> | Is there a simple way in PHP to restrict input to the ASCII Character
>> | set, specifically hex 0x20 - 0x7E ? Or a simple way to detect
>> | characters outside this range before committing them to the database?
>
> The OP had reported that users sometimes enter a slashed zero instead of
> a "normal" zero. In a column of type "char" or "varchar" this might not
> matter too much, so I thought the problem might be related to numeric
> columns instead. Therefore, I had written:
>
> | If you're dealing with a numeric column, [...]
> ^^
And again, I was _not_ referring to that. I wrote:
>>> Testing against '/[^\0x00-\x7F]/', and rejecting anything that matches,
>>> appears to be the best approach here.
^^^^^^^^^^^^^^^^^^^^^^^
PointedEars
--
When all you know is jQuery, every problem looks $(olvable).
|
|
|
Re: Rejecting Certain Non-ASCII Characters [message #181232 is a reply to message #181217] |
Mon, 22 April 2013 12:10 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma: 0
|
Senior Member |
|
|
Denis McMahon wrote:
> What you have defined locally is irrelevant.
ACK.
> Internet domains do not exist unless their tld is registered with the
> internet GTLD root servers, and there is a dns query path to the relevant
> domain nameserver from the internet GTLD root servers.
Some exist even without being registered that way, though:
> If you must obscure your email address, I suggest you use
> email(at)example(dot)com instead.
That would be a violation of RFC 5536 by everyday (mis)use of the
“example.com” SLD. That domain, and the “example” TLD, are for *examples*,
not address munging. See RFC 2606.
> Using <something>@invalid.invalid is just as
> bad as using any other made up domain name. (see <http://www.iana.org/
> domains/special> )
Some NetNews providers argue that it is technically correct, as because of
,-<http://tools.ietf.org/html/rfc2606>
|
| ".invalid" is intended for use in online construction of domain
| names that are sure to be invalid and which it is obvious at a
| glance are invalid.
there cannot be a mailbox there.
However, the TLDs defined in RFC 2606 are not for address munging; they are
“for Testing, & Documentation Examples”. The example SLDs in defined in RFC
2606 are not for address munging either; they “can be used as examples”
only. And the current (2009) NetNews RFC does not allow them:
,-<http://tools.ietf.org/html/rfc5536#section-3.1.2>
|
| 3.1.2. From
|
| The From header field is the same as that specified in Section 3.6.2
| of [RFC5322], with the added restrictions detailed above in
| Section 2.2.
|
| from = "From:" SP mailbox-list CRLF
That is, added *restrictions*, _not_ added freedoms.
Because using “.invalid” (or another of those domains) in a *pseudo*-address
(RFC 5322, since at least RFC 2822: “a mailbox *receives* mail”) prevents
e-mail communication in a non-obvious way (especially to non-English
speakers), whereas e-mail communication *is* important to keep Network news
clean of one-to-one communication (to clarify misunderstandings before they
evolve into flamewars; to give technical or other advice that nobody in the
group should know or care about; to arrange for personal meetings; to offer
jobs because of obvious technical expertise; etc.), it is still considered
anti-social behavior and is subject to killfile rules.
Use it for postings that you want to be read (by knowledgable people), *at
your own risk*; consider that not being read (by knowledgable people) on
NetNews is equivalent to not participate in NetNews at all.
> postmaster@localhost is of course another possibility, and should be
> valid everywhere.
Nonsense. Because it specifies a different mailbox everywhere, *if at all*,
it is _not_ Valid. “localhost” is _not_ a *Fully Qualified* *Domain Name*.
It is the *hostname* for 127.0.0.1 by default. Unless you are running an
MTA on the computer you are reading NetNews with, there cannot be such a
mailbox. And then it will be *your* mailbox you would send e-mail to, not
the author of the posting.
Use that ”address” to annoy people to no end by spamming themselves (worst
case scenario is a bounce days later, or an unexpected log file entry) when
they are trying to give you friendly off-group advice (or in any of the
aforementioned scenarios).
See also: <http://www.interhack.net/pubs/munging-harmful/>
The paper may be old, but its arguments are still valid. Address munging in
any way is *helping* spammers, and *hurting* the NetNews community,
including and firstly oneself. IOW, address munging is one of the most
stupid things you can do.
X-Post & F'up2 news.admin.net-abuse.usenet
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
|
|
|