Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi guys, i have a editable type='text' to output an URL.

Here is the code.

It will result :
Untitled.png
Untitled.png (19.2 KiB) Viewed 1641 times



The problem is, if i put complete url like :
Code: Select all
http://www.couchcms.com/ or https://www.facebook.com/ or https://google.com/


and hit save, the result is 404 page.


But, if i put incomplete url like :
Code: Select all
www.couchcms.com or couchcms.com or facebook.com/username or even a #


and hit save, the page saved. But the output in frontend become :
Code: Select all
http://demo.kampret.com/www.facebook.com or http://demo.kampret.com/facebook.com



Can someone help me pointing whats wrong with this?
Really dunno whats goin on, or maybe i need some rest :roll:
As soon as possible!

Touch me up : abada[dot]zulma[at]gmail[dot]com
Hi,

Looks like some security mod on your server is getting freaked out seeing the 'http://' in posted values.

As a workaround, you can skip 'http://' from input and (to avoid the problem it produces) hardcode that in the template itself e.g.
instead of this -
Code: Select all
<a href="<cms:show my_link />">Some site</a>

use this -
Code: Select all
<a href="http://<cms:show my_link />">Some site</a>

Hope it helps.
2 posts Page 1 of 1