Brain Farting on Apostrophes

Sorry, I don't have a solution to this, but I have seen this and would love to get an answer on this one too...  Anyone know?

clubbeyourself
Quote · 17 Dec 2008

Open /inc/classes/BxDolSharedMedia.php

 

Find (in function getTagLinks() )

 

 foreach ($aTags as $iKey => $sVal ){

   $sVal = trim($sVal, ',' );

 

After it add:

 

$sVal = str_replace("\'", "'", $sVal);

 

As usual this has not been tested - but I am confident it will do the job.

 

Let me know.

Daniel

 

Quote · 18 Dec 2008

For the file description you can::

 

(Again in BxDolSharedMedia.php)

 

Find (in function showFileInfo($aFile))

 

<?=$aFile['medDesc']?>

 

Change to:

 

<?

$fileDesc = $aFile['medDesc'];

$fileDesc = str_replace("\'", "'", $fileDesc);

?>

<?=$fileDesc?>

 

 

That outta do it!

Quote · 18 Dec 2008

Awesome!!  Just what I was looking for!  Is there any chance someone can modify this to include double quotes, too?

Quote · 18 Feb 2009

Nevermind- figured it out.  :)

 


<?

$fileDesc = $aFile['medDesc'];

$fileDesc = str_replace(array("\'", '\"'), array("'", '"'), ($fileDesc));

?>

<?=$fileDesc?>


Quote · 18 Feb 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.