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 
userreg ( ) (Read 55 times)
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac

Posts: 1161
Germany
Gender: male
Re: userreg ( )
Reply #3 - 09/09/09 at 16:38:38
 
Try this:

search eAuction.pl for
Code:
sub escape_content 



search sub escape_content for
Code:
$form{$key} =~ s/([^\s\w.,@%-])/sprintf("&#x%X;", ord($1))/ge; 



insert
Code:
$form{$key} =~ /[]/ && next; 


above the line which has been found.
and ...
complete the content of the square brackets with the equivalent capital letters.

It's not been tested because I cannot use scandinavian letters.
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
Blixten
eAuction Novice
*
Offline

I Love Perl

Posts: 3

Re: userreg ( )
Reply #4 - 09/10/09 at 09:44:49
 
Thank you very much. Now it works as it should
I've added the code above that you said




           $form{$key} =~ /[]/ && next;
           $form{$key} =~ s/([^\s\w.,@%-])/sprintf("&#x%X;", ord($1))/ge;

Back to top
 
« Last Edit: 09/10/09 at 11:45:42 by Dieter Werner »  


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

Dipl. Paranoiac

Posts: 1161
Germany
Gender: male
Re: userreg ( )
Reply #5 - 09/10/09 at 11:41:58
 
Okay ...
now put the capital letters of into the brackets too
Example:
[]
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