www.mamboteam.com
Jx Development
Home arrow Support Forum
Wednesday, 07 January 2009
 
 
Main Menu
Home
FAQs
Portfolio
File Archive
Bug Reports
Support Forum
Development Update
Work in Progress
Web Links
Contact Me
Component Demos
Jobline Demo
Mamblog Demo
Jambook Demo
Login Form





Lost Password?
No account yet? Register
Who's Online
We have 22 guests online
Newsletter

Subscribe to our newsletter.






Donate
If you use and like my scripts, and would like further developments, please consider donating a few bucks.

External links
www.ledutveckling.com - The Yard - Utvecklaren - Rollspel.nu - Spelwebben - Gardener's Game Garage - My Pet Peeves - PSPnuts

Interesting Sites
Joomla!
Joomlahut
Netshine Joomla Tutorial
JX extensions on JED
Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Incorrect link to captcha image (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Incorrect link to captcha image
#5348
hille142 (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Incorrect link to captcha image 2 Months ago Karma: 0  
I noticed there is a bug report on invalid links to captcha images in the guestbook form.
see: http://joomlacode.org/gf/project/jambook/tracker/?action=TrackerItemEdit&tracker_item_id=13380

I just wanted to share my solution: it checks if the filepath is ending with a slash, if not add the trailing slash. Works for me.

file: components/com_jambook/ocr_captcha.class.php
lines: 103-110
new code for functions get_filepath and get_fileurl

function get_filepath($public="" ) {
return (( '/' != substr($this->server_root, -1))?$this->server_root.'/':$this->server_root) . $this->_DS . $this->get_filename($public);
}

function get_fileurl($public="" ) {
return (( '/' != substr($this->server_url, -1))?$this->server_url.'/':$this->server_url) . $this->_DS . $this->get_filename($public);
}

Regards,
Gerrit
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5350
olle (Admin)
Admin
Posts: 975
graph
User Online Now Click here to see the profile of this user
Re:Incorrect link to captcha image 2 Months ago Karma: 14  
That code wouldn't actually fix anything.

The $this->_DS is already adding a slash, so why would an extra be needed?

Granted, the code should probably check that an extra slash isn't added, but two wrongs doesn't really make one right.
 
Report to moderator   Logged Logged  
 
Olle Johansson
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Advertisement
Polls
Is Joomla 1.0 support needed in future releases of our extensions?
 
Latest News
Most Read
Latest Commented
The road to Jobline v1.2 (3 comments)
Usage instructions for Mamblog (16 comments)
Mamblog - User blog component (60 comments)
Jobline supports Joomla 1.5 (8 comments)
Jambook update (5 comments)
Latest Posts

More...
 
Top! Top!