Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669027y@CozyPlanes well you don’t block it exactly, just don’t render \n as a new line and keep it as plain text.
-
C0D4669027y@CozyPlanes wrong word, I meant block as in “\n” as being rendered as a new line instead of literally “\n” in text, preventing new lines.
@Floydian %0D%0A in URL 😇 -
C0D4669027y@CozyPlanes i tried via the web interface at first adding \n but kept getting "\n" as text, then gave up and added encoded new lines to the url of the image generator.
@floydian @CozyPlanes
url i used to make the banner with new lines:
https://generator.devbanner.center/... -
@C0D4
Well the web interface https://devbanner.center does NOT allow \n to be passed as a text in subtext
It seems that the font does not support the character "\"
Also regarding why it accepts new lines (if this is what you are asking) please refer to the imagesharp docs. (https://sixlabors.github.io/docs/...)
There is a word wrap function available, currently a bit broken -
C0D4669027y@CozyPlanes
using: https://devbanner.center/ the interface blocks the "\" character, yes.
but the font clearly supports "\"
what im saying is, that "\n" is kept as text instead of becoming an actual newline.
example with "\n" and "%0A%0D" in same request
https://generator.devbanner.center/... -
aritzh7527y@CozyPlanes I think what he means is that he wants you to substitute the string "\\n" with the char '\n' (that is, if the user enters backslash followed by n, to replace it with a newline
-
Kimmax109877yI'm pretty sure I didn't implement any kind of block on the api, it doesn't really make sense if you ask me. Give a hooman his newlines, if he wants some
I'm not sure what's been done on the frontend, dunno if cozy and his gangsta code monkey's did throw some kind of input validation at it
As far as I'm concerned, I don't really care what the subtext is, since the data ends up as flat image file anyways. Basic stuff happens, like word wrapping, that might interfere with manual newlines, but it's not supposed to block anything -
@Kimmax The forbidden character function was implemented because when a character that isn't in the font was passed as a value, it would result a tofu.
See commit here https://github.com/devBanner/... and https://github.com/devBanner/...
And you just called @skayo a monkey (lol)
@C0D4
And my thoughts on this is just to leave everything as is
Force Newline was since the first time of the project
Related Rants
Hey devBanner guys..i forget who handles the project
@kimmax and @CozyPlanes come to mind?
question: why block \r\n ect, when i can still insert new lines?
rant
devbanner
blocked but injectable
newlines