close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problems with "Insert Plug-in"... path wrong

Thread began 9/14/2018 8:25 am by Mike | Last modified 9/15/2018 11:58 am by Ray Borduin | 1403 views | 6 replies |

Mike

Problems with "Insert Plug-in"... path wrong

Hello,
I've a problem with "Insert Plug-in" and url path in the href tag.

I have this situation.

Page A (/it/include/test-a.php) with more dynamic links from mysql database, example:
<p><a href="<?php echo($rsPages->getColumnVal("url_ita_pages")); ?>"><?php echo($rsPages->getColumnVal("name_pages")); ?></a></p>

If I open the page this is the result (correct... the "url_ita_pages" in the database is "/it/company.php"):
<p><a href="/it/company.php">COMPANY</a></p>

... but if I include (with "WA - Framework Builder - Insert Plugin-in") the above page in another with a different position (for example "/it/test-b.php") in the url I have the path of the above file (includes//), example:
<a href="includes//it/company.php">COMPANY</a>

How can I fix it?
Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

Can I get a URL to reproduce the issue and FTP access? I'll have to debug the problem.

Sign in to reply to this post
Did this help? Tips are appreciated...

Mike

Yes, of course, see the private message.
Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

It appears the issue is related to the XSS (cross site scripting) security we have added to the MySQLi getColumnVal() function.

You are returning a url from your database, and It is encoding your "/", which is preventing the framework builder from properly updating the link.

I've fixed the problem temporarily by disabling the XSS protection by updating the url reference to:

php:
<?php echo($rsTest->getColumnVal("url_ita_pages",false)); ?>



The extra "false" argument tells it to allow reserved characters including the "/".

I'm now considering weather to stop encoding that character, update framework builder to account for that character, or leave it as it is and use the current solution when it occurs.

I'm leaning toward updating the framework builder code.

Sign in to reply to this post
Did this help? Tips are appreciated...

Mike

Ok, understood.
I think that a fixed directly in the core of framework builder should be better; for "large" website is very hard to change manually every single url reference (and to remember the single modify every time that is necessary update the code in the page).
Thanks!

Sign in to reply to this post

Mike

Hi Ray,
I've downloaded the last version of the extension this morning and I saw that you have updated Framework builder code and now the urls returns correctly.
Do you confirm me that is not necessary to update manually the code with "false" but only to update "webassist/framework/framework.php" and "webassist/framework/library.php" files?
Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

That is correct. I decided to update it in framework builder, so that is all that needs to be updated.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...