/operate/ - Endchan Operations

Let us know what's up

Posting mode: Reply

Check to confirm you're not a robot
Name
Email
Subject
Comment
Password
Drawing x size canvas
File(s)

Remember to follow the rules

Max file size: 350.00 MB

Max files: 5

Max message length: 4096

Manage Board | Moderate Thread

Return | Catalog | Bottom

Expand All Images


(25.34 KB 153x292 blue markup bad.jpg)
URLS with # break Anonymous 09/29/2017 (Fri) 02:56:59 [Preview] No. 7110
Tested this many times
URL://some.domain/#somepretty_anchor

/some_dir/#somespecial_filename
this shitcrap/#turd breaks


URL://some.domain/#somepretty_anchor
/some_dir/#somespecial_filename
this shitcrap/#turd breaks

Reason:
https://gitgud.io/InfinityNow/LynxChan/blob/master/src/be/engine/postingOps/common.js
  split = split.replace(/\#.+?\/\#/g, blueTextFunction);

or
var blueTextFunction = function(match) {

var content = match.substring(1, match.length - 2);
return '<span class="blueText">' + content + '</span>';
};


Anonymous 09/29/2017 (Fri) 03:04:47 [Preview] No. 7111 del
>>7110
Wow, it even failed in code tags!
Enjoy the text file then lol
URL://some.domain/?someGET=somevalue!#somekey
/some_dir/#somespecial_filename#somekey
this shitcrap/#turd
URL://some.domain/?someGET=somevalue!#somekey

/some_dir/#somespecial_filename#somekey
this shitcrap/#turd


Anonymous 09/29/2017 (Fri) 08:53:32 [Preview] No. 7113 del
>>7110
Wow, well done, that's a pretty rare case scenario you found.

It should treat anything beginning with http as a link and ignore the text formatting markup within.

testtest.php">http://testsite.com/testtest.php


odilitime Board volunteer 11/04/2017 (Sat) 11:32:54 [Preview] No. 7476 del
>>7110
made some improvements

this is a url http://asdf.com/asdf#bob
but this is blue text

code still parses markdown.

Let me know if you find anything else.


Anonymous 11/04/2017 (Sat) 18:33:57 [Preview] No. 7484 del
>>7476
very nice odili, props



Top | Return | Catalog | Post a reply