Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: bug found  (Read 3920 times)

0 Members and 1 Guest are viewing this topic.

wareagle

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
bug found
« on: November 18, 2003, 04:41:50 pm »

I found a bug in the register module.


it seems the program does not like subdomains.

if I access potmphoto.tsfowler.com

and try to register. it gives me the accept screen and I click I agree I then get a page not found error.

it trys to go to potm.tsfowler.com/potmphoto/register.php

but if I access tsfowler.com/potmphoto/index

it works fine.
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
bug found
« Reply #1 on: November 18, 2003, 04:48:24 pm »

Not a bug with CPG but problem with your subdomain setup

The form action is set to $PHP_SELF and in your case it is potm.tsfowler.com/potmphoto/register.php

hth
Logged
SANIsoft PHP applications for E Biz

wareagle

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
hmmmm
« Reply #2 on: November 18, 2003, 05:09:05 pm »

ok where do I set up the subdomain in cpg?

all other functions work from

http://potmphoto.tsfowler.com

except register

it is the only one that changes the path to

http://potmphoto.tsfowler.com/potmphoto/register.php

the correct path is

http://tsfowler.com/potmphoto/register.php

it is only after the you click on the I agree button that it fails if using a subdomain to register a new user
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
bug found
« Reply #3 on: November 18, 2003, 08:16:46 pm »

As a work around, you can hard code the correct location into the form action spot in register.php.
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 13 queries.