Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #15707

Re: rawurlencode problem

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: rawurlencode problem
Date Tue, 20 Oct 2015 00:02:17 +0200
Organization PointedEars Software (PES)
Lines 20
Message-ID <7044403.NbIso3Bgt0@PointedEars.de> (permalink)
References <d8kekpFmk8uU1@mid.individual.net> <562509b9$0$23834$e4fe514c@news.xs4all.nl> <d8khn6Fnj64U1@mid.individual.net>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Trace solani.org 1445292138 17759 eJwFwYEBgDAIBLGVRMo96yDI/iM0CcdoHYITG+tTG1rWEfrtbZG0g01Va3pMD6lvs0m7HxIRGw== (19 Oct 2015 22:02:18 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Mon, 19 Oct 2015 22:02:18 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwQEBwDAIAzBLwEfBDiurfwlP8oODdZA4qdTbq9rm7fSi2LNDeztlSryYfDAtApcb1IFHTbItJPf+AZ0pFt0=
Cancel-Lock sha1:vrCKOhlLzErDyHg8bWmYkpqct/M=
X-NNTP-Posting-Host eJwNyskBwDAIA7CVSDCGjlOu/Udo9ZYpD8tBI2xtZ7SkJ8heq3SPg8oJcEpE7x8Rm29j8PDGBy3qEUI=
Xref csiph.com comp.lang.php:15707

Show key headers only | View raw


Derek Turner wrote:

> On Mon, 19 Oct 2015 17:18:16 +0200, Erwin Moller wrote:
>> My advice: Simply replace all offending characters (backslashes spaces
>> etc) that might occur in your $row["name"], and use what is left for id
>> and #.

Utter nonsense.

> Thanks, Erwin, using str_replace(' ', '', $string) worked just fine. Now
> both valid  AND working ;)

Insufficient.  The next problem you will be worrying about are XSS attacks 
using non-breaking whitespace.

-- 
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

rawurlencode problem Derek Turner <frderek@suremail.je> - 2015-10-19 14:56 +0000
  Re: rawurlencode problem Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-10-19 17:18 +0200
    Re: rawurlencode problem Derek Turner <frderek@suremail.je> - 2015-10-19 15:48 +0000
      Re: rawurlencode problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-20 00:02 +0200
        Re: rawurlencode problem Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-10-21 09:40 +0200
    Re: rawurlencode problem "J.O. Aho" <user@example.net> - 2015-10-20 18:33 +0200
  Re: rawurlencode problem "J.O. Aho" <user@example.net> - 2015-10-19 21:27 +0200
    Re: rawurlencode problem Derek Turner <frderek@suremail.je> - 2015-10-19 19:43 +0000
      Re: rawurlencode problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-20 00:03 +0200
      Re: rawurlencode problem "J.O. Aho" <user@example.net> - 2015-10-20 07:10 +0200
        Re: rawurlencode problem "J.O. Aho" <user@example.net> - 2015-10-20 07:21 +0200
          Re: rawurlencode problem Derek Turner <frderek@suremail.je> - 2015-10-20 08:29 +0000
            Re: rawurlencode problem "J.O. Aho" <user@example.net> - 2015-10-20 18:29 +0200
        Re: rawurlencode problem Arno Welzel <usenet@arnowelzel.de> - 2015-10-27 14:01 +0100
          Re: rawurlencode problem Arno Welzel <usenet@arnowelzel.de> - 2015-10-27 14:04 +0100
  Re: rawurlencode problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-20 00:00 +0200
  Re: rawurlencode problem Jerry Stuckle <jstucklex@attglobal.net> - 2015-10-19 19:35 -0400
    Re: rawurlencode problem Derek Turner <frderek@suremail.je> - 2015-10-20 08:34 +0000
      Re: rawurlencode problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-21 13:54 +0200

csiph-web