grhbit / mirrorrr

Automatically exported from code.google.com/p/mirrorrr
0 stars 0 forks source link

Webpage loads then goes white #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download revision 9 from svn
2. run the app python2.5 /usr/local/google_appengine/dev_appserver.py 
mirrorrr-read-only/
3. Go to assenna.com

What is the expected output? What do you see instead?
The expected output should be assenna.com. Instead I get a blank page. I 
noticed the regex was changing javascript in the HTML files that looked like 
this:

ratings_mouseover_image.src=ratingsL10n.plugin_url

translated to 

ratings_mouseover_image.src=/assenna.com/ratingsL10n.plugin_url

To fix this I changed the TAG_START to only replace works that have a space 
before the word boundary

TAG_START = r"(?i)\b(?P<tag>src|href|action|url|background)(?P<equals>[\t 
]*=[\t ]*)(?P<quote>[\"']?)"

changed to 

TAG_START = 
r"(?i)(?<!\S)\b(?P<tag>src|href|action|url|background)(?P<equals>[\t ]*=[\t 
]*)(?P<quote>[\"']?)"

That didn't help.

What version of the product are you using? On what operating system?
Revision 9 on OSX Lion python 2.5

Please provide any additional information below.

Original issue reported on code.google.com by nab...@gmail.com on 1 Jan 2012 at 8:09

GoogleCodeExporter commented 9 years ago
I should also not that mirrorrr.appspot.com renders the page fine. Are you 
running a different version?

Original comment by nab...@gmail.com on 1 Jan 2012 at 8:10