[Xerte-dev] Re: problem with trunk and added slashes?
Ron Mitchell
ronm at mitchellmedia.co.uk
Thu Aug 22 10:23:17 BST 2013
Hi Tom
prompted by the latest message on the Xerte list from RGN Meegama (Gayan) attached I did a quick search for our previous discussion about strip slashes below. I haven't had time to investigate this but I wonder if the message from Gayan indicates why this hasn't been a problem for everyone e.g. only materialises when Moodle integration is used and even then perhaps only with a particular stripslashes setting? I've avoided upgrading any installations until I can find time to investigate and test this properly and I still don't have time to investigate now but I wonder if this helps to point you to the cause/solution? I know this is going to raise the old issue about compatibility with 3rd party applications but as I'm sure you also appreciate the fact remains in my experience next to ldap, Moodle is the next most popular solution for xot account management.
Cheers
Ron
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 20 June 2013 23:04
To: For Xerte technical developers
Subject: [Xerte-dev] Re: problem with trunk and added slashes?
The fact that not all people have control over this was the reason for the fix. The old code called stripslashes regardless of the settings resulting in backslashes being removed from prior escapes and LaTeX expressions.
But given your settings, I don't understand where the slashes as coming from.
Tom
Ron Mitchell <ronm at mitchellmedia.co.uk> schreef:
Hi Tom
sorry for the delayed response been at an event all day and only just on the train home. Magic quotes settins are as follows:
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
But this has been the case previously too when this wasn't a problem. I have full control over this server which has 3 separate xot installations so I could change the magic quotes settings but lots of people obviously won't have control over that e.g. on share d hosting etc
HTH
Ron
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 20 June 2013 07:52
To: For Xerte technical developers
Subject: [Xerte-dev] Re: problem with trunk and added slashes?
It has probable caused by r958 (2.0) and r956(trunk). What are your magic_quote settings in php.ini?
Tom
Op 19-6-2013 18:40, Ron Mitchell schreef:
Hi all
I just replied to a message from John where I've already mentioned this but thought I should start a new thread too as this may be unrelated to the main focus of that other thread…
I updated a test install with the latest code from trunk and notice that as soon as I edited and published an LO it was adding extra slashes and thefore breaking preview/play. Here's some sample xml showing the slashes that got added to both preview.xml and data.xml
<learningObject resume=\"true\" language=\"en-GB\" name=\"Learning Object Title\" navigation=\"Linear\" textSize=\"12\" displayMode=\"default\">
<title linkID=\"PG1371648227672\" name=\"Enter Page Title\" size=\"30\"><![CDATA[Enter title here]]></title>
<textGraphics hidePanel=\"true\" linkID=\"PG1361433467001\" name=\"Enter Page Title\" align=\"Left\" imagesize=\"full screen\" url=\"FileLocation + \'media/800_x_516.jpg\'\" tip=\"Enter a Tooltip\" transcriptbuttonlabel=\"Transcript\"><![CDATA[Enter text for the page here]]></textGraphics>
<textGraphics linkID=\"PG1359043029659\" name=\"Enter Page Title\" align=\"Left\" imagesize=\"full screen\" url=\"FileLocation + \'media/xpert_logo.gif\'\" tip=\"Enter a Tooltip\" transcriptbuttonlabel=\"Transcript\"><![CDATA[Enter text for the page here]]></textGraphics>
</learningObject>
I updated an install that was already version 2 but still quite a few revisions applied so not sure what revision is causing this but I reverted the code fixed the xml from my test project and all was fine. Re-applied the code and problem returned.
Any ideas?
HTH
Cheers
Ron
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
--
--
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
_____
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
--
Verzonden van mijn Android telefoon met K-9 Mail.
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130822/68128d6e/attachment-0003.html>
-------------- next part --------------
An embedded message was scrubbed...
From: "RGN Meegama" <rgn at sci.sjp.ac.lk>
Subject: [Xerte] Re: Xerte moodle integration
Date: Thu, 22 Aug 2013 08:40:10 +0100
Size: 20310
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130822/68128d6e/attachment-0003.mht>
More information about the Xerte-dev
mailing list