Entities converted inside code tags

Pandos

  • Living on the edge of Wedge
  • Posts: 635
# dpkg-reconfigure brain
error: brain is not installed or configured

Nao

  • Dadman with a boy
  • Posts: 16,079

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re : Re: [Installer] Sub language folders are not recognized
« Reply #2, on April 17th, 2014, 11:47 AM »
You've fixed that days ago? :)
Now I can safely insert code without transition to > or <.

Code: [Select]
$incontext['detected_languages'][substr($entry, 8, -4)] = '<img src="core/languages/Flag.' . substr($entry, 8, -4) . '.png"> ' . $txt['lang_name'];

Nao

  • Dadman with a boy
  • Posts: 16,079
Re : Re: [Installer] Sub language folders are not recognized
« Reply #4, on April 17th, 2014, 03:19 PM »
Fixed. Somehow...

The remaining problem is with 'php' tags. They act like a code tag, but yet aren't 'protected' the same way. What a bother... :-/ I could do the preparsing for them the same way, but then if you end up typing something like (code)hello (php)world();(/php)(/code), all hell will break loose.
Heck, thinking about it, if you're trying to play with NESTING code tags, the SMF (and thus Wedge) code will probably fail to protect them. It really, REALLY assumes that you're politely using a series of self-closed code tags, and nothing more.