-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error raised when there's a valid <base> tag in <head> #61
Comments
I'm sorry, i didn't pick this up for some reason.... the to_s is there to make sure the present? function is available. present? is a rails function though, so it may be you're not running within rails. I'm not sure why a rails function is in there as cobweb shouldn't have a dependency on rails. as a workaround, you could try to require the function from ActiveSupport...
which will pull in the present? function I believe. I'll look to remove this dependency shortly. |
Thanks, Stewart! Our Cobweb-related code isn't a Rails project, but I use Rails often enough that I didn't think of that explanation. If we need to work around this before you eliminate the dependency we can patch String by loading ActiveSupport's extensions as you suggest. |
The code for present? is pretty simple, so will probably just write our own version based code in rails.
*Stewart McKee*
Founder, Active Information Design
0141 465 5505 ( tel:0141%20465%205505 ) | [email protected]
https://www.activeinformationdesign.com ( https://www.activeinformationdesign.com/ ) | Skype: stewartmckee ( https://webapp.wisestamp.com/sig_iframe?origin=mac-mail&signature_id=6064032967294976&t=0.7811037459520158# )
( http://www.facebook.com/Active-Information-Design-207310232649007/ ) ( http://www.linkedin.com/company/active-information-design ) ( http://twitter.com/activeinform )
( https://twitter.com/activeinform )
…On Fri, 05 Feb 2021 at 18:28 Sven Aas < Sven Aas ( Sven Aas ***@***.***> ) > wrote:
Thanks, Stewart! Our Cobweb-related code isn't a Rails project, but I use
Rails often enough that I didn't think of that explanation. If we need to
work around this before you eliminate the dependency we can patch String
by loading ActiveSupport's extensions as you suggest.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub (
#61 (comment) ) ,
or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AAAOQEV23FKDR3AV24J7ANTS5Q2FTANCNFSM4TLTFGGA
).
|
After several years of happy operation our Cobweb-dependent crawler ran into a page at https://sso.cas.org/ where the
<head>
contains this<base>
tag:Our log file was reporting
and I believe I've traced the problem to a bug in Cobweb's lib/content_link_parser.rb. In the code
I believe the second line is intended to be:
though I haven't been under the hood in Cobweb before and may be misunderstanding what you're trying to do.
The text was updated successfully, but these errors were encountered: