CodeIgniter Forums
Accesible anchor_popup() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Accesible anchor_popup() (/showthread.php?tid=4511)



Accesible anchor_popup() - El Forum - 11-29-2007

[eluser]Unknown[/eluser]
Hi,
I have made some changes to the anchor_popup() function to make it more accesible.

Change in line 144 of url_helper.php:

Code:
return "";

for:

Code:
return '';

And in line 155:

Code:
return "";

For:

Code:
return '';

I hope this can be useful..


Accesible anchor_popup() - El Forum - 11-29-2007

[eluser]xwero[/eluser]
We really need a javascript code sticky i guess Smile
A lot of people already found out window.location and <script> doesn't get through the filter. The best way to prevent this is the use of html entities to make it possible to copy the code without changes.

A little while ago someone else posted a solution for the same 'problem' check if it is the same change.