Odd "gibberish" in admin view #56

Closed
opened 2017-03-21 08:37:28 +00:00 by mwweb · 6 comments
mwweb commented 2017-03-21 08:37:28 +00:00 (Migrated from github.com)

I started looking through my views to ensure all is looking the way that I want, and I noticed in one of my admin views (single item view) that there are script tags, even though I have no custom scripts loading in that view, and I have no idea WHERE they are coming from.

Have you come across anything like below?

<script type="text/javascript">

	D“8ÀŽN

</script>
I started looking through my views to ensure all is looking the way that I want, and I noticed in one of my admin views (single item view) that there are script tags, even though I have no custom scripts loading in that view, and I have no idea WHERE they are coming from. Have you come across anything like below? ``` <script type="text/javascript"> D“8ÀŽ N </script> ```

I would say go to that view and check if you have that code in any of its fields. I have not seen that before.

I would say go to that view and check if you have that code in any of its fields. I have not seen that before.
mwweb commented 2017-03-21 16:46:37 +00:00 (Migrated from github.com)

That was actually one of the first things I did. And even checked the record in the database, and saw nothing. I guess I'll have to work on rebuilding that view today, and see if it does it after a compile.

That was actually one of the first things I did. And even checked the record in the database, and saw nothing. I guess I'll have to work on rebuilding that view today, and see if it does it after a compile.

Hmmm does it add that gibberish during compilation? So you see that in the edit view of the item?

Hmmm does it add that gibberish during compilation? So you see that in the edit view of the item?
mwweb commented 2017-03-21 19:43:59 +00:00 (Migrated from github.com)

I'm seeing it in the code of the view. I actually came across this when adding some custom code, the code wasn't working, so I was digging through. I deleted the custom code, still there. I just created a new view, very similar to this one, and it's putting it there too. I just deleted 99% of the field I put in, and it's not there. So, it must be something in one of the fields being added. I'll keep this updated, as I add a few fields, compile, and when I start seeing it again, dig into those fields.

I'm seeing it in the code of the view. I actually came across this when adding some custom code, the code wasn't working, so I was digging through. I deleted the custom code, still there. I just created a new view, very similar to this one, and it's putting it there too. I just deleted 99% of the field I put in, and it's not there. So, it must be something in one of the fields being added. I'll keep this updated, as I add a few fields, compile, and when I start seeing it again, dig into those fields.
mwweb commented 2017-03-21 22:41:22 +00:00 (Migrated from github.com)

There were a lot of fields to go through, but there were a couple of fields that had Add JavaScript (view-footer) turned on, but nothing in the input area. I don't recall turning those on, but that is the issue.

There were a lot of fields to go through, but there were a couple of fields that had Add JavaScript (view-footer) turned on, but nothing in the input area. I don't recall turning those on, but that is the issue.

okay great, happy you found it. Naturally we only checked the switch and if set to yes we add the script. I will add a fix to insure that it also check the script length in the next update.

okay great, happy you found it. Naturally we only checked the switch and if set to yes we add the script. I will add a fix to insure that it also check the script length in the next update.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#56
No description provided.