]> git.mjollnir.org Git - moodle.git/commit
Implemented a safer version of stripslashes called stripslashes_safe.
authormoodler <moodler>
Thu, 23 Jan 2003 13:07:49 +0000 (13:07 +0000)
committermoodler <moodler>
Thu, 23 Jan 2003 13:07:49 +0000 (13:07 +0000)
commit7d8f674dea8692df07ccaf2a39e7af7011552206
tree3b9700f40ee6b60415f1fdd336d8b15da05383c3
parentf3e48e6ef0a46bb2f909001c7d0c724239249c92
Implemented a safer version of stripslashes called stripslashes_safe.

This will only fix these three cases:

  \'
  \"
  \\

and leaves all other backslashes alone.  Should fix problems in forums
and forms where backslashes were sometimes disappearing from windows
paths like C:\temp - usually only in the richtext editor, but still.
lib/weblib.php