xda / XDA-One

XDA:One is a native Android application used to browse the XDA Developers forum.
http://forum.xda-developers.com
GNU General Public License v3.0
155 stars 56 forks source link

Links sometimes open in browser as http:/// or about:blank #11

Closed webworker01 closed 10 years ago

webworker01 commented 10 years ago

Trying to get exact steps to reproduce, but the difference in the URL that is opened seems to be just how various android browsers handle a blank url.

gitanshu commented 10 years ago

The links open as

%20http//developer.android.com

instead of

http://developer.android.com

bgorkowy commented 10 years ago

Html coming from KefirBB parser in https://github.com/xda/XDA-One/blob/6b139064e99ae1b39730eaa8cd757fa70e79e2cc/android/src/main/java/com/xda/one/parser/ContentParser.java#L119 has a double http:// part.

Example BBCode: [URL="http://forum.xda-developers.com/google-nexus-5/help"]Q&A, Help & Troubleshooting[/URL]

Parsed html: <a href="http://"http://forum.xda-developers.com/google-nexus-5/help"">Q&A, Help & Troubleshooting</a>