Forums | Mahara Community

Support /
target option disappear


Laszló Bambuk's profile picture
Posts: 22

05 August 2016, 22:13

Hi,

i just upgrade Mahara to 16.04 and in the add text block, the insert link option changed, the target option disappear, how can i set it, to users see it again?

thx

Laszló Bambuk's profile picture
Posts: 22

10 August 2016, 22:35

Hi, any- everybody!

What should i do for an answer?

Aaron Wells's profile picture
Posts: 896

11 August 2016, 10:57

Hi Laszlo,

We removed the "target" options from throughout Mahara for security reasons. See https://bugs.launchpad.net/mahara/+bug/1558361

If you'd like to add it back into TinyMCE, you'll need to patch your site to revert this change:

https://reviews.mahara.org/#/c/6167/4/htdocs/lib/web.php

... and delete the "htmlpurifier" directory in your dataroot so that HTMLPurifier will update its rules cache.

Cheers,

Aaron

 

Laszló Bambuk's profile picture
Posts: 22

11 August 2016, 16:02

Hi Aaron!

Thank you, its working. Great.

My i ask one more: the site earlier has another administrator, and the owner ask me to resetting a property: in the contetnt/files menu, any uploaded pdf, when you just clik on, opened in a new mahara window,

in the recent site(16.04) any file on clik open the save file dialog, the owner would like to setting up the earlier state

could you help me? 

 

Aaron Wells's profile picture
Posts: 896

11 August 2016, 17:32

That's another security patch: https://bugs.launchpad.net/mahara/+bug/1190788

You'll need to revert some portion of the patch for that bug, so that it no longer uses the "application/forcedownload" mimetype when you click the download link for a file in Mahara.

Doing so will reduce the site's security, though, so make sure you read that bug report and understand the risks. Same for re-enabling the TinyMCE "target" option.

Cheers,

Aaron

Laszló Bambuk's profile picture
Posts: 22

11 August 2016, 23:13

Hi Aaron,

 

thx for the answer, but is semms to me, im not understand. Could you help me a little bit more.

I just follow your link and try to understand and solve my problem. I just opened the file.php in the /lib, and modified the 87. raw from  'content-disposition:attachment' to 'content-disposition:inline',

it doesnot take any effect.

 

 

Laszló Bambuk's profile picture
Posts: 22

14 August 2016, 16:17

Hi Aaron,

sorry my first misunderstanding, the way what you suggest  is working.i just commented the lines 86-89 in the /lib/file.php and the pdf opened in the browser

Thank you

László

7 results