eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1 2 
html and auction ends (Read 1074 times)
cougar694u
eAuction User
**
Offline

I love Perl

Posts: 10

Re: html and auction ends
Reply #3 - 04/15/05 at 16:19:26
 
Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


I created it and am still having problems with the multi-lined/html description.  I tested it again to make sure that I still had the problem, which I do.

I created a test item and typed:

Test Line 1
Test Line 2

and it closed my auction with 1 bid, and displayed all those errors on the screen again.
Back to top
 
 


Advertising
View Profile   IP Logged
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: html and auction ends
Reply #4 - 04/15/05 at 17:34:26
 
OK - I see it is my fault - sorry.
I don't have taken into account that a user could copy&paste the text/html-code of the item description.

Do the following:
- search eAuction.pl for sub check_item_data
- search sub check_item_data for this line

Code:
    oops($txt{'You must enter a valid bid increment'})
   unless $form{'INC'} =~ /$pattern/; 



- replace the line with this
Code:
    oops($txt{'You must enter a valid bid increment'})
   unless $form{'INC'} =~ /$pattern/;
   
   $form{'DESC'} =~ s/[\r\n]//g; 

Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
Pages: 1 2 


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only