html_encode in printHomeLink, printParentBreadcrump

Hi guys!

You just added html_encode($before) ... in the functions printHomeLink, printParentBreadcrump and so on, which makes it no more possible to use sort of styles here (I used to use span). Any workaround besides hacking template-functions.php? (I know: "You should NEVER modify core files ...")

Wete

Comments

  • Well, of course you can make your own functions to do these things. Use the current function as a model.

    We have regularized Zenphoto so that it is consistent. All strings used internally are presumed to need html encoding. This way nothing is left to chance. Strings which typically would contain html tags are encoded by a special function that scrubs invalid tags, encodes html entities, and passes valid tags through. This function is not invoked for strings that typically do not require html tagging since it is an expensive process.

    All this is so that hackers cannot sneek exploits into your site.
  • Wete Member
    I completely understand that mentality, but I want those red >> in my breadcrumps. Maybe I'll use own functions for that, but I don't like those hacks, because they blast my knowledges ...
  • Wete Member
    Solved it with 2 modified functions.
  • acrylian Administrator, Developer
    The dev nightly build has some changes regarding this as well
  • Wete Member
    A little more details ...?
  • acrylian Administrator, Developer
    That generally parameters like before/after/between that a lot of functions work the same way and allow formatting. Of course this is the 1.4.4. dev nightly so probably not for production use yet.
  • Wete Member
    Thanx!
  • More specifically, with the dev build there is a span class for each of the "before", "between", and "after" type parameters allowing you to use CSS formatting for their content.
  • Wete Member
    Sounds good!
Sign In or Register to comment.