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: [solved] login.php  (Read 6379 times)

0 Members and 1 Guest are viewing this topic.

pcfreak

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
[solved] login.php
« on: October 20, 2003, 10:17:38 pm »

Bug in login.php at line 63

Code: [Select]
<font size="1" color="red"><b>Warning your browser does not accept script's cookies<b></font>

Change script's to scripts

Its simple but its a hard bug, the lines after line 64 gives an error because this bug
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
[solved] login.php
« Reply #1 on: October 21, 2003, 12:10:55 am »

hm, sorry - I don't understand: what error do you get? Grammatically you're wrong - it's not plural ("one script, two scripts"), but genitive ("Who does the cookie belong to? - To the script").
The lines you're refering to should look like this:
Code: [Select]
if (!isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data'])) {
    $cookie_warning = <<<EOT
                  <tr>
                          <td colspan="2" align="center" class="tableh2">
                        <font size="1" color="red"><b>Warning your browser does not accept script's cookies<b></font>
                        </td>
                  </tr>

EOT;
}
if you should get a parse error it's probably because you modified something else - the heredoc syntax allows having single quotes in this way.

If you really think you have discovered a bug, please post a link to the page where we can see it and a complete listing of your login.php

GauGau
Logged

pcfreak

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
[solved] login.php
« Reply #2 on: October 21, 2003, 08:50:39 pm »

Hey, this is realy stupid from me :?  

My php editor gives an error at  's  

why ? its expects a var between 2 single quotes , because one quote is missing its gives a error.


Sorry about this, i wil go programming the next time in a text editor  :wink:
Logged

laixi

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: [solved] login.php
« Reply #3 on: March 18, 2005, 02:18:55 am »

dont set cookie path.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.