space and plus

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rainer Wiener

    #1

    space and plus

    Hi,

    When I pass a variable e.g. action= I2OSg2/49FeviZi4PjUm+w == across the
    url
    and into a php program it is coming in to the program as

    I2OSg2/49FeviZi4PjUm w== instead of I2OSg2/49FeviZi4PjUm+w == i.e. the
    '+'
    symbol is now being interpreted as a space.

    Is this a bug in PHP 4.4.1 (on bugs.php.net I can't find anything) or a problem of the programmers?

    cu
    Rainer
  • Oli Filth

    #2
    Re: space and plus

    Rainer Wiener said the following on 08/11/2005 15:41:[color=blue]
    > Hi,
    >
    > When I pass a variable e.g. action= I2OSg2/49FeviZi4PjUm+w == across the
    > url
    > and into a php program it is coming in to the program as
    >
    > I2OSg2/49FeviZi4PjUm w== instead of I2OSg2/49FeviZi4PjUm+w == i.e. the
    > '+'
    > symbol is now being interpreted as a space.
    >
    > Is this a bug in PHP 4.4.1 (on bugs.php.net I can't find anything) or a problem of the programmers?
    >[/color]




    --
    Oli

    Comment

    • Ewoud Dronkert

      #3
      Re: space and plus

      Rainer Wiener wrote:[color=blue]
      > When I pass a variable [...] across the url[/color]



      --
      E. Dronkert

      Comment

      • Berimor

        #4
        Re: space and plus

        On Tue, 08 Nov 2005 17:41:49 +0200, Rainer Wiener
        <rainer.wiener@ schlund.de> wrote:
        [color=blue]
        > Hi,
        >
        > When I pass a variable e.g. action= I2OSg2/49FeviZi4PjUm+w == across the
        > url
        > and into a php program it is coming in to the program as
        >
        > I2OSg2/49FeviZi4PjUm w== instead of I2OSg2/49FeviZi4PjUm+w == i.e. the
        > '+'
        > symbol is now being interpreted as a space.
        >
        > Is this a bug in PHP 4.4.1 (on bugs.php.net I can't find anything) or a
        > problem of the programmers?[/color]

        This is not the bug - just sign "+" should be URL ecoded before sent to
        script.
        Looks like you going to type it directly in address bar.



        --
        ---
        Exact Meta Search | Major Search Engine

        Comment

        • NC

          #5
          Re: space and plus

          Rainer Wiener wrote:[color=blue]
          >
          > When I pass a variable e.g. action= I2OSg2/49FeviZi4PjUm+w ==
          > across the url and into a php program it is coming in to the program
          > as I2OSg2/49FeviZi4PjUm w== instead of
          > I2OSg2/49FeviZi4PjUm+w == i.e. the '+'
          > symbol is now being interpreted as a space.[/color]

          This is perfectly normal. Since URLs are not allowed to contain
          spaces, most browsers replace them with "+" signs. You need to make
          sure that you urlencode() your variables.

          Cheers,
          NC

          Comment

          Working...