Jump to content

Question

Posted

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

  • 0
Posted

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.
  • 0
Posted

 

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()?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...