• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Staus of URL's created in e.g. CMSModule::CreateReturnLink
PostPosted: Thu Jan 11, 2018 10:32 pm 
Offline
Forum Members
Forum Members

Joined: Mon Apr 11, 2011 7:33 am
Posts: 13
Do any of you have experience with, and/or can you suggest a use-case for, CMSModule::CreateReturnLink() ?

I'm wondering because the method produces a string with an embedded URL which can be partially-'entitized' (not e.g. urlencoded). I think such anchor would (if actually modified) be unusable verbatim in a browser. Nor would the $onlyhref-returned URL be usable as-is.

Ditto for CMSModule::create_url().

Should we correct something here?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Staus of URL's created in e.g. CMSModule::CreateReturnLi
PostPosted: Thu Jan 11, 2018 10:44 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 7924
Location: Fernie British Columbia, Canada
I would not use any PHP method for creating a 'link', and consider all of them to be 'legacy code'.

Bettter solution is to to give URL's to smarty and then build the link tag, or whatever else (javascript etc). in the template.

Whether the function is buggy or not is irrelevant. consider that the URL is your 'data' give it to smarty to render it as a link or whatever inside your template.

_________________
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
HostPapa CMS Made Simple hosting