Re: [Miniwiki-general] quotes
Status: Beta
Brought to you by:
src
From: sebastien m. <seb...@ya...> - 2006-03-13 00:51:01
|
Stepan Roh a =E9crit : > Hi. > > On Sun, 12 Mar 2006, sebastien monterisi wrote: > >> I'm sorry if the question was already post but i can't access the=20 >> archives now. >> >> my hoster has magic_quote_gpc turned on, so i can't use italic and=20 >> bold text. >> >> form : >> ''italic'' '''gras''' >> render : >> \'\'italic\'\' \'\'\'gras\'\'\' >> >> Is it possible to solve that prob ? or should i modify the source ? > > In snapshots this should be solved, in 0.2 you can try to edit=20 > miniwiki.php and change MW_Request constructor to contain: > > if (get_magic_quotes_gpc()) { > $_REQUEST =3D array_map("stripslashes", $_REQUEST); > } > > I don't know whether $_REQUEST is mutable. If not, copy it to some=20 > variable and use it in the rest of MW_Request(). > > Have a nice day. > > Stepan Roh So I aded > if (get_magic_quotes_gpc()) { > $_REQUEST =3D array_map("stripslashes", $_REQUEST); > }=20 to function MW_Request() , around line 280 in lib/miniwiki.php I supposed that's what i was supposed to do because it's ok now. :) I was also having problems in pages with quotes in their name, and=20 that's also ok now. Thanks a lot. Have a nice day (or night) too :) |