Elxis CMS Forum
Extensions => Components => Topic started by: codeloveme on February 16, 2014, 14:38:26
-
Hello,
when i was making a gallery photos the title has a word with 's and when i save it does not show ' it just delet it i tried to remove the auto replace from components/com_gallery/gallery.php but it does not work so i would like to check the code with you and if any one could help
$pat = "([\!]|[\;]|[\(]|[\)]|[\]|[\$]|[\#]|[\<]|[\>]|[\*]|[\%]|[\~]|[\^]|[\|]|[\{]|[\}]|[\\\]|[\.]|[\,]|[\:]|[\?])";
i removed [\'] so it can be shown in the title but when i refresh it is the same
Thank you
-
i've found the way to fix it and its in
/administrator/components/com_gallery/includes/gallery.class.php
lines(124,126)
just remove: [\']|
and go to '/components/com_gallery/gallery.php
and remove: [\']|
from lines (152,258,316)
i do not know if this will effect on the security of the site or not so if someone can help caz codes have (') and someone could use it somehow..........
Adam