Re: strrpos au lieu de stops pour affichage_final ?

Fil <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <CAERh8-=X79w1sVr8U1CV-21nNFO-78z4rbHP5jrhQ413LO=seA@mail.gmail.com>
Note que si ton commentaire était *après* le </body> il faudrait un autre
correctif. Ce qu'il faudrait c'est éviter de faire la modif dans un
commentaire. Mais dans affichage_final il faut éviter les calculs coûteux,
et donc on va pas le faire et assumer que ça foire dans certains cas.
Supprime le commentaire et le tour est joué ?

-- Fil

2015-12-13 13:40 GMT+01:00 Yohann Prigent <[email protected]>:

> Hello les écureuils,
>
> Je viens de remarquer un petit soucis sur un SPIP 3.0.21. J’avais un
> commentaire fermant, avant le body, du type :
>
> <!--
> This tag must be placed between the <body> and </body> tags, as close as
> possible to the opening tag.
> Creation Date: 12/07/2015
> -->
>
> Et SPIP a inséré les scripts introduits par affichage_final comme ceci :
>
> his tag must be placed between the <body> and <script
> type=“texte/javascript”></script></body> tags, as close as possible to the
> opening tag.
> Creation Date: 12/07/2015
> -->
>
> D’où ma question : ne vaut-il mieux pas modifier la ligne 230 de
> ecrire/inc/pipelines.php pour utiliser strrpos au lieu de strpos ?
>
> Bon week-end :)
>
> --
> Yohann Prigent
>
> _______________________________________________
> liste: http://listes.rezo.net/mailman/listinfo/spip-dev
> doc: http://www.spip.net/
> dev: http://trac.rezo.net/trac/spip/
> irc://irc.freenode.net/spip
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.