jlrdw's avatar
Level 75

You have ventured into 404 space

On forum, keyboard is working fine when replying, but any mouse click takes you to:

You have ventured into 404 space.

0 likes
12 replies
jlrdw's avatar
Level 75

Okay @jeffreyway what is causing the text area on that post to act as links, but not others.

@tippin it would be nice to find out what is going on. That is weird.

I wonder if it's another problem with Vue. Or an attempted hack of some sort.

Ksandar's avatar

noticed it too.

@jlrdw It looks like a problem with markdown parser

Ksandar's avatar

although no, in the source code everything seems to be okay. Maybe really related to vue

jlrdw's avatar
Level 75

public function show($id) {

  $post = Post::findOrFail($id);
  return view("book-blogs.show", compact('post'));

}

{{ route('book-blogs.show', $post->id) }}"

I thought that line was causing it, but problem isn't happening here now. Still just that post.

Ksandar's avatar

@jlrdw {{ }} is used in vue. But in this case i think the problem in markdown parser (or html purifier) - it seems that it sometimes missing something and only after that vue comes into play.

Tippin's avatar

@jlrdw Seems it would be an issue with Vue markdown. If you look at the body returned in the API response for the original post, the owner had an open a href tag, but never closed the tag (as he was pasting example from his code). Seems this bled off into the rest of the page. Here is screenshot, you can see in hover text the A tag at the end of his BODY is not closed

https://i.imgur.com/GJztRIK.png

jlrdw's avatar
Level 75

I see that OP has

<a href="{{ route('book-blogs.show', $post-id) }}"><p>Any ideas why I keep getting the error?</p></a>

Not in markdown.

Wow this could be a weakness in vue, what if that was a link to a bad site? I don't use vue, I use plain js and jquery. That is not good.

At least now I know nothing malicious was going on.

Maybe a separate text area for code kind of like the asp.net forum does.

Ksandar's avatar
Ksandar
Best Answer
Level 26

@jlrdw I think html purifier is used here (on server side i mean). Usually, it should remove all unclosed tags (on saving or before showing post). But in this case, either there are bugs with it, or it should be more strict.

Anyway, @jeffreyway will now have something to do.

Maybe he will even make a video about it.

jlrdw's avatar
Level 75

Okay between the tag thing that @tippin answered and your @ksandar answer, I am confused on who to give best answer to, But true Jeffrey will at least have to look at this, so I guess you. But both were great answers.

@jeffreyway perhaps you could allow for more than one best answer, or a best, second best. So many post have two or three very good answers. Just a thought.

2 likes

Please or to participate in this conversation.