AllToolKits.com Posted December 6, 2013 Report Posted December 6, 2013 I was developing a plugin, in this we have an icon with a ahref. We have a link in this like domain.com?jx=x1&y=y1 .When we pass it to setWidgetButton, this url is converted into domain.com?jx=x1&y=y1 hence that can't be clicked. Anyway to fix it? Quote
0 AllToolKits.com Posted December 6, 2013 Author Report Posted December 6, 2013 I did a temporory fix by editting the core file. I would like to know weather it'a a bug from blesta or an issue in my blesta plugin code. Dif fix in following file Class : helpers/html/html.php Method : public function _(&$str, $return=false, $preserve_tags=false) Code before change : $result = (isset($str) ? $this->safe($str, $preserve_tags) : ""); Code after change : $result = isset($str) ? $str : ""; Let me know is there any nice way to fix it. Quote
0 Tyson Posted December 6, 2013 Report Posted December 6, 2013 I did a temporory fix by editting the core file. I would like to know weather it'a a bug from blesta or an issue in my blesta plugin code. Dif fix in following file Class : helpers/html/html.php Method : public function _(&$str, $return=false, $preserve_tags=false) Code before change : $result = (isset($str) ? $this->safe($str, $preserve_tags) : ""); Code after change : $result = isset($str) ? $str : ""; Let me know is there any nice way to fix it. You should not do this as it opens up the entire application to XSS vulnerabilities. I was developing a plugin, in this we have an icon with a ahref. We have a link in this like domain.com?jx=x1&y=y1 .When we pass it to setWidgetButton, this url is converted into domain.com?jx=x1&y=y1 hence that can't be clicked. Anyway to fix it? We don't have this issue. Can you show us what you're doing when you make the call to Widget::setWidgetButton()? Michael 1 Quote
Question
AllToolKits.com
I was developing a plugin, in this we have an icon with a ahref.
We have a link in this like domain.com?jx=x1&y=y1 .When we pass it to setWidgetButton, this url is converted into
domain.com?jx=x1&y=y1 hence that can't be clicked.
Anyway to fix it?
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.